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