From 32db72d8f0d65029e6793c0dfc2c79ab0ccf084e Mon Sep 17 00:00:00 2001 From: Josh Faust Date: Fri, 3 May 2013 18:36:19 -0700 Subject: [PATCH] Fix crash in QQmlApplicationEngine when loading finishes Task-number: QTBUG-30997 Change-Id: I10cb2c689408d1b31360095c2aa9e0943a5d9452 Reviewed-by: Alan Alpert --- src/qml/qml/qqmlapplicationengine.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/qml/qml/qqmlapplicationengine.cpp b/src/qml/qml/qqmlapplicationengine.cpp index a5f8f46..25095a4 100644 --- a/src/qml/qml/qqmlapplicationengine.cpp +++ b/src/qml/qml/qqmlapplicationengine.cpp @@ -133,7 +133,8 @@ void QQmlApplicationEnginePrivate::_q_finishLoad(QObject *o) case QQmlComponent::Null: return; //These cases just wait for the next status update } - delete c; + + c->deleteLater(); } /*! -- 1.7.2.5