]> Creatis software - bbtkGEditor.git/blobdiff - lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
some memory leaks
[bbtkGEditor.git] / lib / EditorGraphicBBS / bbsWxGUIEditorGraphic / wxGEditorTabPanel.cxx
index c0255da5686e4dbc98eb685a8c84bf31bd895f07..6ce48ef3ba30c01c6e209e19cfeac171b717ab51 100644 (file)
@@ -65,6 +65,9 @@ printf ("EED %p ~wxGEditorTabPanel()\n" , this );
 //ED02JUIN2010         _sceneManager->disconnectDrop();
 
         _panelsManager->VerifyLastTabPanel();
+               //FCY memory leaks
+               delete _panelAUIMgr;
+               delete _sceneManager;
 
        }
 
@@ -162,7 +165,10 @@ printf("EED wxGEditorTabPanel::initWxVtkCanvas 1\n");
 
        void wxGEditorTabPanel::centerView()
        {
-               _sceneManager->centerView();
+               if(_sceneManager)
+               {
+                       _sceneManager->centerView();
+               }
        }
 
        //=========================================================================