[education/rkward] rkward/windows: Avoid double deletion
Thomas Friedrichsmeier
null at kde.org
Sat Sep 17 09:08:20 BST 2022
Git commit 8f28a78b5fd63b225427721e7a0554d79878d607 by Thomas Friedrichsmeier.
Committed on 17/09/2022 at 08:08.
Pushed by tfry into branch 'master'.
Avoid double deletion
M +1 -1 rkward/windows/rkcommandeditorwindow.cpp
https://invent.kde.org/education/rkward/commit/8f28a78b5fd63b225427721e7a0554d79878d607
diff --git a/rkward/windows/rkcommandeditorwindow.cpp b/rkward/windows/rkcommandeditorwindow.cpp
index fc8cf72c..6182887a 100644
--- a/rkward/windows/rkcommandeditorwindow.cpp
+++ b/rkward/windows/rkcommandeditorwindow.cpp
@@ -316,7 +316,7 @@ RKCommandEditorWindow::~RKCommandEditorWindow () {
emit KTextEditor::Editor::instance()->application()->aboutToDeleteDocuments(QList<KTextEditor::Document*>() << m_doc);
#endif
}
- delete m_doc;
+ m_doc->deleteLater();
if (visible_to_kateplugins) {
emit KTextEditor::Editor::instance()->application()->documentDeleted(m_doc);
#if KTEXTEDITOR_VERSION < QT_VERSION_CHECK(5,80,0)
More information about the rkward-tracker
mailing list