Skip to content
Permalink
Browse files

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

(cherry picked from commit 16c114b)
(cherry picked from commit ad9aa75)
  • Loading branch information
nyalldawson committed Feb 28, 2019
1 parent 1e2f13d commit 4b639bf49bbced4afb33470140640dbd43c16ce7
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 4b639bf

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