Skip to content

Commit

Permalink
Only cleanup python on exit if loaded
Browse files Browse the repository at this point in the history
Fix #8085
  • Loading branch information
m-kuhn committed Jun 17, 2013
1 parent dd0e86f commit bdd61d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -796,7 +796,8 @@ QgisApp::~QgisApp()

delete QgsProject::instance();

mPythonUtils->exitPython();
if ( mPythonUtils )
mPythonUtils->exitPython();
delete mPythonUtils;
}

Expand Down

0 comments on commit bdd61d5

Please sign in to comment.