changeset 24021:46dc1ba54f7f

Free variable editor QMainWindow memory upon delete (bug #51954). * variable-editor.cc (~variable_editor): Delete the m_main window from memory and, consequently, m_tool_bar and m_tab_widget.
author Daniel J Sebald <daniel.sebald@ieee.org>
date Wed, 06 Sep 2017 21:54:31 -0500
parents 387be1a6c3dc
children 291e3a4cc4ff
files libgui/src/variable-editor.cc
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc	Thu Sep 07 00:32:15 2017 -0400
+++ b/libgui/src/variable-editor.cc	Wed Sep 06 21:54:31 2017 -0500
@@ -129,11 +129,8 @@
 
 variable_editor::~variable_editor (void)
 {
-  // FIXME: This doesn't work yet.
-  //
-  //  delete m_main;
-  //  delete m_tool_bar;
-  //  delete m_tab_widget;
+  // m_tool_bar and m_tab_widget are contained within m_main
+  delete m_main;
 }
 
 void