From d9ecb7345c23cff097ea1a83a829673e220b400f Mon Sep 17 00:00:00 2001 From: Charles Yin Date: Fri, 13 Jan 2012 10:47:25 +1000 Subject: Don't delete global app Sometimes delete the global GUI app causes crash, this is a work around fix. Change-Id: Ic2406e7a085483de5d96321de8257663925b7e5e Reviewed-by: Michael Brasser --- src/qmltest/quicktest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/qmltest') diff --git a/src/qmltest/quicktest.cpp b/src/qmltest/quicktest.cpp index a1f06baa39..7ec4fc4aef 100644 --- a/src/qmltest/quicktest.cpp +++ b/src/qmltest/quicktest.cpp @@ -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(); } -- cgit v1.2.3