# HG changeset patch # User Daniel J Sebald # Date 1504752871 18000 # Node ID 46dc1ba54f7f494e22be0682c1de1db0f3a863f7 # Parent 387be1a6c3dc1639cef69d00bf28cb1ce6b3c67c 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. diff -r 387be1a6c3dc -r 46dc1ba54f7f libgui/src/variable-editor.cc --- 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