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

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