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)
  • Loading branch information
nyalldawson committed Mar 5, 2019
1 parent efd1377 commit 2a7a1b3
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 2a7a1b3

Please sign in to comment.