Commit dc5beef1 authored by Ralf Habacker's avatar Ralf Habacker

Fix crash in TEST_cppwriter::cleanupTestCase() detected by build.kde.org.

parent 36eb4d74
......@@ -240,15 +240,15 @@ UMLApp::~UMLApp()
delete m_clipTimer;
delete m_copyTimer;
delete m_commoncodegenpolicy;
delete m_d;
delete m_doc;
delete m_imageExporterAll;
delete m_listView;
delete m_printer;
delete m_policyext;
delete m_pUndoStack;
delete m_refactoringAssist;
delete m_xhtmlGenerator;
delete m_listView;
delete m_doc;
delete m_d;
}
/**
......
......@@ -185,7 +185,6 @@ UMLDoc::~UMLDoc()
delete m_pAutoSaveTimer;
m_root[Uml::ModelType::Logical]->removeObject(m_datatypeRoot);
delete m_stereotypesModel;
delete m_datatypeRoot;
for (int i = 0; i < Uml::ModelType::N_MODELTYPES; ++i) {
......@@ -193,6 +192,7 @@ UMLDoc::~UMLDoc()
}
delete m_pChangeLog;
qDeleteAll(m_stereoList);
delete m_stereotypesModel;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment