aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlengine.cpp
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-02-26 11:43:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-02 14:49:06 +0100
commit518860e1d7b3a28fe43fed653886e45d97ee7b5d (patch)
tree285c915bf0fe8e4833019b879a6591149248a8e3 /src/qml/qml/qqmlengine.cpp
parent849de77470ca81bc97a547af28c4caa3b8a84078 (diff)
[new compiler] Fix qquickanimation test crash
Share finalization callbacks across all sub-instances of ObjectCreator, by moving into into SharedState. Change-Id: Ibcd679caecd2009b4705d04c859b2fea4c2295fd Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlengine.cpp')
-rw-r--r--src/qml/qml/qqmlengine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlengine.cpp b/src/qml/qml/qqmlengine.cpp
index d373c00574..6336835844 100644
--- a/src/qml/qml/qqmlengine.cpp
+++ b/src/qml/qml/qqmlengine.cpp
@@ -1050,7 +1050,7 @@ void QQmlEnginePrivate::registerFinalizeCallback(QObject *obj, int index)
if (activeVME) {
activeVME->finalizeCallbacks.append(qMakePair(QPointer<QObject>(obj), index));
} else if (activeObjectCreator) {
- activeObjectCreator->finalizeCallbacks.append(qMakePair(QPointer<QObject>(obj), index));
+ activeObjectCreator->finalizeCallbacks()->append(qMakePair(QPointer<QObject>(obj), index));
} else {
void *args[] = { 0 };
QMetaObject::metacall(obj, QMetaObject::InvokeMetaMethod, index, args);