diff options
author | Uwe Klotz <uwe_klotz@web.de> | 2016-12-08 18:32:34 +0100 |
---|---|---|
committer | Uwe Klotz <uwe_klotz@web.de> | 2016-12-09 23:45:42 +0100 |
commit | e49571835af3278537630b1d09af94cb54c38e26 (patch) | |
tree | 19980811464c9cfa5049a515d18f929260e86db6 /src | |
parent | 7e81c3014e0d92c57d685db9dd0d1d9394f783cc (diff) |
Fix memory leak in TreeItem
Diffstat (limited to 'src')
-rw-r--r-- | src/library/treeitem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/treeitem.cpp b/src/library/treeitem.cpp index 2985373fcb..31a54c45ae 100644 --- a/src/library/treeitem.cpp +++ b/src/library/treeitem.cpp @@ -55,7 +55,7 @@ void TreeItem::appendChild(TreeItem *item) { } void TreeItem::removeChild(int index) { - m_childItems.removeAt(index); + delete m_childItems.takeAt(index); } TreeItem *TreeItem::child(int row) { |