# HG changeset patch # User John W. Eaton # Date 1561755808 14400 # Node ID b88d66c631c8138dd8bbe4a4eabfdff549bce22d # Parent a044202208af2c10e9cf900276edc81b4d3b8cb3 delete translator objects in base_qobject destructor * octave-qobject.cc (base_qobject::~base_qobject): Also delete m_qsci_tr, m_gui_tr, and m_qt_tr objects. diff -r a044202208af -r b88d66c631c8 libgui/src/main-window.cc --- a/libgui/src/main-window.cc Fri Jun 28 14:42:44 2019 -0400 +++ b/libgui/src/main-window.cc Fri Jun 28 17:03:28 2019 -0400 @@ -215,10 +215,6 @@ main_window::~main_window (void) { - // Note that we don't delete m_main_thread here. That is handled by - // deleteLater slot that is called when the m_main_thread issues a - // finished signal. - // Destroy the terminal first so that STDERR stream is redirected back // to its original pipe to capture error messages at exit. diff -r a044202208af -r b88d66c631c8 libgui/src/octave-qobject.cc --- a/libgui/src/octave-qobject.cc Fri Jun 28 14:42:44 2019 -0400 +++ b/libgui/src/octave-qobject.cc Fri Jun 28 17:03:28 2019 -0400 @@ -142,7 +142,14 @@ base_qobject::~base_qobject (void) { + // Note that we don't delete m_main_thread here. That is handled by + // deleteLater slot that is called when the m_main_thread issues a + // finished signal. + delete m_interpreter_qobj; + delete m_qsci_tr; + delete m_gui_tr; + delete m_qt_tr; delete m_qapplication; string_vector::delete_c_str_vec (m_argv);