]> Creatis software - bbtkGEditor.git/commitdiff
some memory leaks
authorcervenansky <>
Thu, 23 Jun 2011 14:55:46 +0000 (14:55 +0000)
committercervenansky <>
Thu, 23 Jun 2011 14:55:46 +0000 (14:55 +0000)
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/GObjectsMVCFactory.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/bbtkwxGUIEditorGraphicBBS.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.h
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxTabPanelsManager.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.cxx
lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxVtkSceneManager.h

index d495b72..0b299b8 100644 (file)
@@ -82,6 +82,8 @@ namespace bbtk
 
        void GObjectsMVCFactory :: destroyInstance()
        {
+               //FCY memory leaks
+               delete instance;
                instance=NULL;
        }
 
index 76cfe77..57ef4b2 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;
 
 
        }
index c0255da..6ce48ef 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();
+               }
        }
 
        //=========================================================================
index d2d1962..3740f98 100644 (file)
@@ -39,7 +39,6 @@ Version:   $Revision$
  #include <vtkPolygon.h>
  #include <vtkUnstructuredGrid.h>
 
-
 namespace bbtk
 {
 
@@ -91,8 +90,10 @@ namespace bbtk
 
        wxVtkSceneManager::~wxVtkSceneManager()
        {
+               //FCY memory leaks
                printf ("EED %p ~wxVtkSceneManager()\n" , this );
                disconnectDrop();
+               delete _baseView;
        }
 
        //=========================================================================
index e44720c..ac27e88 100644 (file)
@@ -84,7 +84,6 @@ Version:   $Revision$
 #include <iostream>
 #include <map>
 
-
 namespace bbtk
 {
        class wxGEditorTabPanel;