diff --git a/Plugin/LevelsetPlugin.cpp b/Plugin/LevelsetPlugin.cpp index fbc62eac7d88876e2edbe695e0b5682bedb2f234..5cdef1ebe1f8daff18b528e5991ca573509c9345 100644 --- a/Plugin/LevelsetPlugin.cpp +++ b/Plugin/LevelsetPlugin.cpp @@ -1,4 +1,4 @@ -// $Id: LevelsetPlugin.cpp,v 1.28 2003-01-25 01:22:42 geuzaine Exp $ +// $Id: LevelsetPlugin.cpp,v 1.29 2003-01-25 01:31:29 geuzaine Exp $ // // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // @@ -24,6 +24,7 @@ #include "Views.h" #include "Iso.h" #include "Numeric.h" +#include "Malloc.h" GMSH_LevelsetPlugin::GMSH_LevelsetPlugin() { @@ -62,7 +63,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v) if(v->NbSS){ - Post_View **View = new (Post_View*)[v->NbTimeStep]; + Post_View **View = (Post_View**)Malloc(v->NbTimeStep* sizeof(Post_View*)); switch(_orientation){ case ORIENT_PLANE: @@ -221,7 +222,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v) // a little bogus if multiple output views, but we don't use it anyway processed = View[0]; - delete [] View; + Free(View); return processed; } diff --git a/Plugin/Plugin.cpp b/Plugin/Plugin.cpp index f4a408d18ae24211df48989639491d6f4ae43c0d..0b869396b9f8c86091ffed570f3b4b3ef1aa5a67 100644 --- a/Plugin/Plugin.cpp +++ b/Plugin/Plugin.cpp @@ -1,4 +1,4 @@ -// $Id: Plugin.cpp,v 1.32 2003-01-24 23:13:36 geuzaine Exp $ +// $Id: Plugin.cpp,v 1.33 2003-01-25 01:31:29 geuzaine Exp $ // // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // @@ -119,7 +119,6 @@ GMSH_PluginManager* GMSH_PluginManager::Instance(){ void GMSH_PluginManager::RegisterDefaultPlugins(){ struct dirent **list; - char ext[6]; allPlugins.insert(std::pair<char*,GMSH_Plugin*>("CutMap", GMSH_RegisterCutMapPlugin())); @@ -139,6 +138,7 @@ void GMSH_PluginManager::RegisterDefaultPlugins(){ GMSH_RegisterSphericalRaisePlugin())); #ifdef _FLTK + char ext[6]; char *homeplugins = getenv ("GMSHPLUGINSHOME"); if(!homeplugins) return; #if (FL_MAJOR_VERSION == 1 || FL_MAJOR_VERSION == 2) && (FL_MINOR_VERSION == 0)