summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxlistview.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-09-07 00:06:36 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-09-07 00:06:36 (GMT)
commit262c7d1fdc5dfbd8c2e9f84d1d3055735b5bc4b3 (patch)
tree2d1549a07d82a0ab84238779e0549adbdce86b64 /src/declarative/fx/qfxlistview.cpp
parent6e93a32b5286cb6e2179a810ee5966abe5015f31 (diff)
downloadQt-262c7d1fdc5dfbd8c2e9f84d1d3055735b5bc4b3.zip
Qt-262c7d1fdc5dfbd8c2e9f84d1d3055735b5bc4b3.tar.gz
Qt-262c7d1fdc5dfbd8c2e9f84d1d3055735b5bc4b3.tar.bz2
Fix leaks.
Diffstat (limited to 'src/declarative/fx/qfxlistview.cpp')
-rw-r--r--src/declarative/fx/qfxlistview.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxlistview.cpp b/src/declarative/fx/qfxlistview.cpp
index 523786f..c24610f 100644
--- a/src/declarative/fx/qfxlistview.cpp
+++ b/src/declarative/fx/qfxlistview.cpp
@@ -881,6 +881,7 @@ QFxListView::QFxListView(QFxItem *parent)
QFxListView::~QFxListView()
{
Q_D(QFxListView);
+ d->clear();
if (d->ownModel)
delete d->model;
}