Don't delete global app
authorCharles Yin <charles.yin@nokia.com>
Fri, 13 Jan 2012 00:47:25 +0000 (10:47 +1000)
committerQt by Nokia <qt-info@nokia.com>
Fri, 13 Jan 2012 05:45:10 +0000 (06:45 +0100)
Sometimes delete the global GUI app causes crash, this is a work around
fix.

Change-Id: Ic2406e7a085483de5d96321de8257663925b7e5e
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
src/qmltest/quicktest.cpp

index a1f06ba..7ec4fc4 100644 (file)
@@ -379,7 +379,10 @@ int quick_test_main(int argc, char **argv, const char *name, quick_test_viewport
 
     saveCoverageTool(argv[0], QuickTestResult::exitCode());
 
-    delete app;
+    //Sometimes delete app cause crash here with some qpa plugins,
+    //so we comment the follow line out to make them happy.
+    //delete app;
+
     // Return the number of failures as the exit code.
     return QuickTestResult::exitCode();
 }