Fix crash in QQmlApplicationEngine when loading finishes
authorJosh Faust <jfaust@suitabletech.com>
Sat, 4 May 2013 01:36:19 +0000 (18:36 -0700)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 14 May 2013 20:22:28 +0000 (22:22 +0200)
Task-number: QTBUG-30997

Change-Id: I10cb2c689408d1b31360095c2aa9e0943a5d9452
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/qml/qml/qqmlapplicationengine.cpp

index a5f8f46..25095a4 100644 (file)
@@ -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();
 }
 
 /*!