Fix crash bug related to QDeclarativeListModel
authorCharles Yin <charles.yin@nokia.com>
Fri, 20 Jan 2012 05:41:16 +0000 (15:41 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 3 Feb 2012 01:08:05 +0000 (02:08 +0100)
commitff8f1ac8caa86006a887d9104886aadd23f8750c
tree0b88914e086690d7f46e314a9bc4e7aca3c3ab67
parent348b51327fe72fc8ea4292a3b5cb4df178c1d234
Fix crash bug related to QDeclarativeListModel

If QDeclarativeListModel is deleted, all references to this object in
QDeclarativeListModelWorkerAgent and WorkerScript objects should be removed
and additional checking is needed when process the pending sync() events.

Change-Id: I12b1f06699cc908e684af0886cf06d811c3fceb4
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Reviewed-by: Glenn Watson <glenn.watson@nokia.com>
src/declarative/qml/qdeclarativelistmodel.cpp
src/declarative/qml/qdeclarativelistmodelworkeragent.cpp
src/declarative/qml/qdeclarativelistmodelworkeragent_p.h
src/declarative/qml/qdeclarativeworkerscript.cpp
tests/auto/declarative/qdeclarativelistmodel/tst_qdeclarativelistmodel.cpp