From: Anthony Geay Date: Mon, 24 Oct 2016 14:39:25 +0000 (+0200) Subject: Proposition of modification X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fagy%2FComeFromOT;p=modules%2Fgui.git Proposition of modification --- diff --git a/tools/PyConsole/src/PyConsole_Editor.cxx b/tools/PyConsole/src/PyConsole_Editor.cxx index 7ec727292..3824f17a7 100644 --- a/tools/PyConsole/src/PyConsole_Editor.cxx +++ b/tools/PyConsole/src/PyConsole_Editor.cxx @@ -219,6 +219,7 @@ void PyConsole_Editor::init( PyConsole_Interp* interp ) */ PyConsole_Editor::~PyConsole_Editor() { + delete myInterp; myInterp = 0; } diff --git a/tools/PyConsole/src/PyConsole_Interp.cxx b/tools/PyConsole/src/PyConsole_Interp.cxx index 722413686..b921a36d9 100644 --- a/tools/PyConsole/src/PyConsole_Interp.cxx +++ b/tools/PyConsole/src/PyConsole_Interp.cxx @@ -56,6 +56,7 @@ PyConsole_Interp::PyConsole_Interp() */ PyConsole_Interp::~PyConsole_Interp() { + destroy(); } /*!