Skip to content

Commit 8817358

Browse files
author
wonder
committed
Delete QgisApp on destruction in order to get the destructor called (#3531).
Let's hope it will not bring any crashes when qgis exits... git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15751 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ead2ede commit 8817358

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/main.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -730,5 +730,7 @@ int main( int argc, char *argv[] )
730730

731731
qgis->completeInitialization();
732732

733-
return myApp.exec();
733+
int retval = myApp.exec();
734+
delete qgis;
735+
return retval;
734736
}

0 commit comments

Comments
 (0)