Members of the KDE Community are recommended to subscribe to the kde-community mailing list at to allow them to participate in important discussions and receive other important announcements

Commit da87d376 authored by Ralf Habacker's avatar Ralf Habacker

Fix memory leaks in class UMLDoc by not deleting class members and not...

Fix memory leaks in class UMLDoc by not deleting class members and not disconnecting signal/slot connections.

parent c765a558
......@@ -150,8 +150,23 @@ void UMLDoc::createDatatypeFolder()
UMLApp * pApp = UMLApp::app();
disconnect(this, SIGNAL(sigDiagramCreated(Uml::ID::Type)), pApp, SLOT(slotUpdateViews()));
disconnect(this, SIGNAL(sigDiagramRemoved(Uml::ID::Type)), pApp, SLOT(slotUpdateViews()));
disconnect(this, SIGNAL(sigDiagramRenamed(Uml::ID::Type)), pApp, SLOT(slotUpdateViews()));
disconnect(this, SIGNAL(sigCurrentViewChanged()), pApp, SLOT(slotCurrentViewChanged()));
disconnect(m_pAutoSaveTimer, SIGNAL(timeout()), this, SLOT(slotAutoSave()));
delete m_pAutoSaveTimer;
delete m_datatypeRoot;
for (int i = 0; i < Uml::ModelType::N_MODELTYPES; ++i) {
delete m_root[i];
delete m_pChangeLog;
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