]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
some memory leaks
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / bbtkwxGUIEditorGraphicBBS.cxx
index f010e33f610c2b40396c552138ed0d452609be8c..57ef4b2ddb7227c2e99960907c2547cb50ba68db 100644 (file)
@@ -39,8 +39,6 @@ Version:   $Revision$
 
 #include <InterpreterBBS.h>
 
-
-
 namespace bbtk
 {
 
@@ -91,6 +89,10 @@ namespace bbtk
 //EED02JUIN2010                delete _tabsMgr;
 
            _frameAUIMgr->UnInit();
+               // FCY memory leaks
+               delete _frameAUIMgr;
+               delete _notebook;
+               delete _tabsMgr;
 
 
        }
@@ -348,25 +350,27 @@ namespace bbtk
 
        void wxGUIEditorGraphicBBS::executeScript(std::string script)
        {
-               std::string separator = ConfigurationFile::GetInstance().Get_file_separator ();
-               std::string dir = ConfigurationFile::GetInstance().Get_default_temp_dir();
-               std::string filename = dir + separator + "tmp_bbtk.bbs";
+               std::string separator   = ConfigurationFile::GetInstance().Get_file_separator ();
+               std::string dir                 = ConfigurationFile::GetInstance().Get_default_temp_dir();
+               std::string filename    = dir + separator + "tmp_bbtk.bbs";
 
                ofstream tempFile;
                tempFile.open(filename.c_str());
                tempFile << script;
                tempFile.close();
 
-               std::string command = "\""+ crea::System::GetExecutablePath();
+               std::string command = "";
+
+               #ifdef WIN32
+                       command += "\"";
+               #endif
+               command += "\""+ crea::System::GetExecutablePath();
 
 
 #ifdef MACOSX
                command += separator + "../../../bbi.app/Contents/MacOS";
 #endif
 
-               #ifdef WIN32
-                       command += "\"";
-               #endif
 
                /*
 
@@ -385,7 +389,7 @@ namespace bbtk
                command += separator + "bbi\" ";
                command += "\""+filename + "\"";
                #ifdef WIN32
-       //              command += "\"";
+                       command += "\"";
                #endif
 
         #ifndef WIN32