Fix memory leak in QAbstractItemModel autotest.
authorJason McDonald <jason.mcdonald@nokia.com>
Wed, 4 Jan 2012 03:29:42 +0000 (13:29 +1000)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jan 2012 02:49:45 +0000 (03:49 +0100)
commitf599b5cd30a18e57e34cd9b5ffe6c80e4d2c902e
tree67eae0afbf9369ea8f1ea8ba507009a349b7a24f
parentca81ec03d69817e838c7758844184447f530e0f6
Fix memory leak in QAbstractItemModel autotest.

The test was allocating a new model on the heap each time init() was
invoked, but none of these models were deleted.

Change-Id: Ibe107b2dbc949a5f72940f67c08f4b0f46256c09
Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
tests/auto/corelib/itemmodels/qabstractitemmodel/tst_qabstractitemmodel.cpp