Skip to content

Commit

Permalink
Delete QgisApp on destruction in order to get the destructor called (#…
Browse files Browse the repository at this point in the history
…3531).

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


git-svn-id: http://svn.osgeo.org/qgis/trunk@15751 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Apr 17, 2011
1 parent 191ffdf commit 99a3205
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,5 +730,7 @@ int main( int argc, char *argv[] )

qgis->completeInitialization();

return myApp.exec();
int retval = myApp.exec();
delete qgis;
return retval;
}

0 comments on commit 99a3205

Please sign in to comment.