fix [#28672] Blender segfault after exiting a game that was opened with
autoplay on (Blender, not blenderplayer) blender now stops the sound system and free's its self on Pythons sys.exit().
This commit is contained in:
@@ -30,7 +30,7 @@
|
||||
|
||||
/* grr, python redefines */
|
||||
#ifdef _POSIX_C_SOURCE
|
||||
#undef _POSIX_C_SOURCE
|
||||
# undef _POSIX_C_SOURCE
|
||||
#endif
|
||||
|
||||
#include <Python.h>
|
||||
@@ -241,6 +241,8 @@ void BPY_python_start(int argc, const char **argv)
|
||||
|
||||
pyrna_alloc_types();
|
||||
|
||||
BPY_atexit_init(); /* this can init any time */
|
||||
|
||||
#ifndef WITH_PYTHON_MODULE
|
||||
py_tstate= PyGILState_GetThisThreadState();
|
||||
PyEval_ReleaseThread(py_tstate);
|
||||
|
||||
Reference in New Issue
Block a user