Fix memory leak in ListModel custom parser
authorBea Lam <bea.lam@nokia.com>
Thu, 25 Aug 2011 07:03:10 +0000 (17:03 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 25 Aug 2011 22:37:45 +0000 (00:37 +0200)
commit6dd1ab81e1c7943053feea321b6f7774b688ee5d
treef58a5820910b80774aea0ec01e93b3df4c173c27
parent59440312401f7fc26d4b60a5c3966154c8b43f27
Fix memory leak in ListModel custom parser

ModelNodes created by the parser for ListElement definitions were not
deleted.

(cherry picked from commit c1491c356f3cca92a359468ce37f38bc1873eec4)

Task-number: QTBUG-21084
Change-Id: Ic55a054bb8e30cdabd11080e4f827df5deb1a014
Reviewed-on: http://codereview.qt.nokia.com/3567
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/declarative/util/qdeclarativelistmodel.cpp
src/qtquick1/util/qdeclarativelistmodel.cpp