From 8cbc726016dd4e21b65b73640ebed312a3571d77 Mon Sep 17 00:00:00 2001 From: Anthony Geay Date: Mon, 24 Oct 2016 16:39:25 +0200 Subject: [PATCH] Proposition of modification --- tools/PyConsole/src/PyConsole_Editor.cxx | 1 + tools/PyConsole/src/PyConsole_Interp.cxx | 1 + 2 files changed, 2 insertions(+) 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(); } /*! -- 2.39.2