summaryrefslogtreecommitdiffstats
path: root/src/declarative/fx/qfxpathview.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-09-08 01:10:47 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-09-08 01:10:47 (GMT)
commitfa2cd481324d65d754d77f4fb3a99cc394fdba78 (patch)
tree4da9c968361a7cc4f7f95efdc731a27b3630f5a4 /src/declarative/fx/qfxpathview.cpp
parent89e0ecfb4afe8b6f1d8cbfe64cfd493ad423919e (diff)
downloadQt-fa2cd481324d65d754d77f4fb3a99cc394fdba78.zip
Qt-fa2cd481324d65d754d77f4fb3a99cc394fdba78.tar.gz
Qt-fa2cd481324d65d754d77f4fb3a99cc394fdba78.tar.bz2
Fix leaks.
Diffstat (limited to 'src/declarative/fx/qfxpathview.cpp')
-rw-r--r--src/declarative/fx/qfxpathview.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/declarative/fx/qfxpathview.cpp b/src/declarative/fx/qfxpathview.cpp
index 469e9f3..62f9db0 100644
--- a/src/declarative/fx/qfxpathview.cpp
+++ b/src/declarative/fx/qfxpathview.cpp
@@ -128,6 +128,9 @@ QFxPathView::QFxPathView(QFxPathViewPrivate &dd, QFxItem *parent)
QFxPathView::~QFxPathView()
{
+ Q_D(QFxPathView);
+ if (d->ownModel)
+ delete d->model;
}
/*!