Navigation Menu

Skip to content

Commit

Permalink
Don't ever call Py_Finalize -- causes segfaults on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Feb 28, 2019
1 parent 388d605 commit 16c114b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/qgspythonutilsimpl.cpp
Expand Up @@ -270,7 +270,8 @@ void QgsPythonUtilsImpl::exitPython()
{
if ( mErrorHookInstalled )
uninstallErrorHook();
Py_Finalize();
// causes segfault!
//Py_Finalize();
mMainModule = nullptr;
mMainDict = nullptr;
mPythonEnabled = false;
Expand Down

0 comments on commit 16c114b

Please sign in to comment.