diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-12-08 06:00:34 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-12-08 06:00:34 (GMT) |
commit | abef2069a4f1afbbf373ec0b667838dadd926798 (patch) | |
tree | 0a6fa2a8acf01a87e9366f795dc8f98881e22cf3 /src/declarative | |
parent | 8bbe541a602f5bea707bb5e042f9399e5bcd0b15 (diff) | |
download | Qt-abef2069a4f1afbbf373ec0b667838dadd926798.zip Qt-abef2069a4f1afbbf373ec0b667838dadd926798.tar.gz Qt-abef2069a4f1afbbf373ec0b667838dadd926798.tar.bz2 |
Fix leak.
Diffstat (limited to 'src/declarative')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicsrepeater.cpp | 2 |
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) |