X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FEditorGraphicBBS%2FbbsWxGUIEditorGraphic%2FwxGEditorTabPanel.cxx;h=6ce48ef3ba30c01c6e209e19cfeac171b717ab51;hb=7a77e00abe30e71c3a97f7a43b106c999ce9db87;hp=c0255da5686e4dbc98eb685a8c84bf31bd895f07;hpb=b1e96d2f19691cf4ba5247c5042b0238e71676b1;p=bbtkGEditor.git diff --git a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx index c0255da..6ce48ef 100644 --- a/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx +++ b/lib/EditorGraphicBBS/bbsWxGUIEditorGraphic/wxGEditorTabPanel.cxx @@ -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(); + } } //=========================================================================