Skip to content
Permalink
Browse files

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

(cherry picked from commit 16c114b)
  • Loading branch information
nyalldawson committed Mar 5, 2019
1 parent efd1377 commit 2a7a1b33a99d2c1c967d77061a706f31b6836045
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/python/qgspythonutilsimpl.cpp
@@ -266,7 +266,8 @@ bool QgsPythonUtilsImpl::startServerPlugin( QString packageName )
void QgsPythonUtilsImpl::exitPython()
{
uninstallErrorHook();
Py_Finalize();
// causes segfault!
//Py_Finalize();
mMainModule = nullptr;
mMainDict = nullptr;
mPythonEnabled = false;

0 comments on commit 2a7a1b3

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