Commit 3f265e26 authored by Ralf Habacker's avatar Ralf Habacker
Browse files

More memory leak fixes

parent a7b35bc0
......@@ -51,7 +51,9 @@ DiagramsWindow::DiagramsWindow(const QString &title, QWidget *parent)
DiagramsWindow::~DiagramsWindow()
{
QAbstractItemModel *proxy = m_diagramsTree->model();
delete m_diagramsTree;
delete proxy;
}
void DiagramsWindow::modified()
......
......@@ -50,7 +50,9 @@ StereotypesWindow::StereotypesWindow(const QString &title, QWidget *parent)
StereotypesWindow::~StereotypesWindow()
{
QAbstractItemModel *proxy = m_stereotypesTree->model();
delete m_stereotypesTree;
delete proxy;
}
void StereotypesWindow::modified()
......
......@@ -100,10 +100,11 @@ public:
~UMLAppPrivate()
{
delete diagramsWindow;
delete editorWindow;
delete logWindow;
delete stereotypesWindow;
delete objectsWindow;
delete editorWindow;
delete stereotypesWindow;
delete welcomeWindow;
}
......
......@@ -144,8 +144,10 @@ UMLListView::UMLListView(QWidget *parent)
*/
UMLListView::~UMLListView()
{
clean(); // m_lv
delete m_datatypeFolder;
delete m_settingsFolder;
delete m_rv;
}
/**
......
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