summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-12-08 06:00:34 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-12-08 06:00:34 (GMT)
commitabef2069a4f1afbbf373ec0b667838dadd926798 (patch)
tree0a6fa2a8acf01a87e9366f795dc8f98881e22cf3 /src/declarative
parent8bbe541a602f5bea707bb5e042f9399e5bcd0b15 (diff)
downloadQt-abef2069a4f1afbbf373ec0b667838dadd926798.zip
Qt-abef2069a4f1afbbf373ec0b667838dadd926798.tar.gz
Qt-abef2069a4f1afbbf373ec0b667838dadd926798.tar.bz2
Fix leak.
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicsrepeater.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp b/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp
index a650999..99f0faa 100644
--- a/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp
+++ b/src/declarative/graphicsitems/qmlgraphicsrepeater.cpp
@@ -56,6 +56,8 @@ QmlGraphicsRepeaterPrivate::QmlGraphicsRepeaterPrivate()
QmlGraphicsRepeaterPrivate::~QmlGraphicsRepeaterPrivate()
{
+ if (ownModel)
+ delete model;
}
QML_DEFINE_TYPE(Qt,4,6,Repeater,QmlGraphicsRepeater)