[QGIS Commit] r15751 - trunk/qgis/src/app

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Apr 17 13:26:44 EDT 2011


Author: wonder
Date: 2011-04-17 10:26:44 -0700 (Sun, 17 Apr 2011)
New Revision: 15751

Modified:
   trunk/qgis/src/app/main.cpp
Log:
Delete QgisApp on destruction in order to get the destructor called (#3531).

Let's hope it will not bring any crashes when qgis exits...


Modified: trunk/qgis/src/app/main.cpp
===================================================================
--- trunk/qgis/src/app/main.cpp	2011-04-17 16:07:29 UTC (rev 15750)
+++ trunk/qgis/src/app/main.cpp	2011-04-17 17:26:44 UTC (rev 15751)
@@ -730,5 +730,7 @@
 
   qgis->completeInitialization();
 
-  return myApp.exec();
+  int retval = myApp.exec();
+  delete qgis;
+  return retval;
 }



More information about the QGIS-commit mailing list