# HG changeset patch # User Torsten Lilge # Date 1607364295 -3600 # Node ID bd5961abe971b6f46f4f2bdb6aed720e7dcb79f9 # Parent 4ca50ceb9576bcc5b9d2a8de974160423161c724 * file-editor-tab.cc (dtor): do not delete m_edit_area (bug #59628) diff -r 4ca50ceb9576 -r bd5961abe971 libgui/src/m-editor/file-editor-tab.cc --- a/libgui/src/m-editor/file-editor-tab.cc Fri Dec 11 11:42:53 2020 -0500 +++ b/libgui/src/m-editor/file-editor-tab.cc Mon Dec 07 19:04:55 2020 +0100 @@ -280,16 +280,14 @@ emit remove_all_breakpoints (); emit remove_all_positions (); - // Destroy items attached to m_edit_area. + // Destroy lexer attached to m_edit_area, which is not the parent + // of lexer QsciLexer *lexer = m_edit_area->lexer (); if (lexer) { delete lexer; m_edit_area->setLexer (nullptr); } - - // Destroy m_edit_area. - delete m_edit_area; } void file_editor_tab::set_encoding (const QString& new_encoding)