Fix memory leak when cancelling incubation of view items.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 29 Jun 2012 01:49:33 +0000 (11:49 +1000)
committerQt by Nokia <qt-info@nokia.com>
Sat, 30 Jun 2012 03:31:15 +0000 (05:31 +0200)
commita27feb5a95aa0756bbc37de32434111752f44e4e
tree99f63ddb5cca546d6036df818d62189c8c6e3d6c
parentad52fcc452b88963c7c373240af89e9f6f494019
Fix memory leak when cancelling incubation of view items.

Don't cancel incubation of referenced object, but if incubation is
cancelled remove the scriptRef held by the incubator so the data object
can be released, not just when incubation has inititialized but not
finalized an object.

Change-Id: If2d6a4c4409dbd771d7131782023aa5e2d08eeed
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/quick/items/qquickvisualdatamodel.cpp