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
(cherry picked from commit 16c114b)
(cherry picked from commit ad9aa75)
  • Loading branch information
nyalldawson committed Mar 7, 2019
1 parent 1e2f13d commit 4b639bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/qgspythonutilsimpl.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 4b639bf

Please sign in to comment.