Skip to content

Commit 4b639bf

Browse files
committed
Don't ever call Py_Finalize -- causes segfaults on exit
(cherry picked from commit 16c114b) (cherry picked from commit ad9aa75)
1 parent 1e2f13d commit 4b639bf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/python/qgspythonutilsimpl.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,8 @@ bool QgsPythonUtilsImpl::startServerPlugin( QString packageName )
266266
void QgsPythonUtilsImpl::exitPython()
267267
{
268268
uninstallErrorHook();
269-
Py_Finalize();
269+
// causes segfault!
270+
//Py_Finalize();
270271
mMainModule = nullptr;
271272
mMainDict = nullptr;
272273
mPythonEnabled = false;

0 commit comments

Comments
 (0)