Fix T46870: bge globalDict kept between sessions

This commit is contained in:
Campbell Barton 2015-11-26 11:08:35 +11:00
parent d0b453577a
commit 88556d801f
Notes: blender-bot 2024-01-16 18:05:25 +01:00
Referenced by issue #46870, The python objects in the `bge.logic.globalDict` are not destructed at the end of the game
1 changed files with 1 additions and 0 deletions

View File

@ -677,6 +677,7 @@ extern "C" void StartKetsjiShell(struct bContext *C, struct ARegion *ar, rcti *c
BLI_strncpy(G.main->name, oldsce, sizeof(G.main->name));
#ifdef WITH_PYTHON
PyDict_Clear(pyGlobalDict);
Py_DECREF(pyGlobalDict);
// Release Python's GIL