From 4c42c8b392d8d7c58f2b038a7b0809cd0cca011b Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 25 Jan 2003 01:31:29 +0000 Subject: [PATCH] Again for sgi --- Plugin/LevelsetPlugin.cpp | 7 ++++--- Plugin/Plugin.cpp | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Plugin/LevelsetPlugin.cpp b/Plugin/LevelsetPlugin.cpp index fbc62eac7d..5cdef1ebe1 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 f4a408d18a..0b869396b9 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) -- GitLab