Skip to content

Commit 16c114b

Browse files
committedFeb 28, 2019
Don't ever call Py_Finalize -- causes segfaults on exit
1 parent 388d605 commit 16c114b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/python/qgspythonutilsimpl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,8 @@ void QgsPythonUtilsImpl::exitPython()
270270
{
271271
if ( mErrorHookInstalled )
272272
uninstallErrorHook();
273-
Py_Finalize();
273+
// causes segfault!
274+
//Py_Finalize();
274275
mMainModule = nullptr;
275276
mMainDict = nullptr;
276277
mPythonEnabled = false;

0 commit comments

Comments
 (0)
Please sign in to comment.