Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit cbe2312b authored by Ralf Habacker's avatar Ralf Habacker

Fix memory leaks reported by valgrind in class UMLApp by not deleting class...

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

Reorder class member list in destructor alphabetical.

CCBUG:347498
parent 9d8d3249
......@@ -202,14 +202,21 @@ UMLApp::UMLApp(QWidget* parent)
*/
UMLApp::~UMLApp()
{
delete m_imageExporterAll;
disconnect(m_pZoomInPB, SIGNAL(clicked()), this, SLOT(slotZoomIn()));
disconnect(m_pZoomSlider, SIGNAL(valueChanged(int)), this, SLOT(slotZoomSliderMoved(int)));
delete m_birdView;
delete m_clipTimer;
delete m_copyTimer;
delete m_refactoringAssist;
delete m_pUndoStack;
delete m_printer;
delete m_commoncodegenpolicy;
delete m_d;
delete m_birdView;
delete m_doc;
delete m_imageExporterAll;
delete m_listView;
delete m_printer;
delete m_policyext;
delete m_pUndoStack;
delete m_refactoringAssist;
}
/**
......
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