Skip to content
Permalink
Browse files

Don't ever call Py_Finalize -- causes segfaults on exit

  • Loading branch information
nyalldawson committed Feb 28, 2019
1 parent 388d605 commit 16c114bf4eea35cc4a1ed2f072b37a8c65e4ed93
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/python/qgspythonutilsimpl.cpp
@@ -270,7 +270,8 @@ void QgsPythonUtilsImpl::exitPython()
{
if ( mErrorHookInstalled )
uninstallErrorHook();
Py_Finalize();
// causes segfault!
//Py_Finalize();
mMainModule = nullptr;
mMainDict = nullptr;
mPythonEnabled = false;

0 comments on commit 16c114b

Please sign in to comment.
You can’t perform that action at this time.