Bugfix #5918 GE Crash when press Esc
Modifier.c had ref count problems from TypeDict being added twice to module. Congratulations due to Tom Musgrove (LetterRip) for chasing this down.
This commit is contained in:
@@ -1429,6 +1429,9 @@ PyObject *Modifier_Init( void )
|
||||
|
||||
if( TypeDict ) {
|
||||
PyModule_AddObject( submodule, "Type", TypeDict ); /* deprecated */
|
||||
/* since PyModule_AddObject() steals a reference, we need to
|
||||
incref TypeDict to use it again */
|
||||
Py_INCREF( TypeDict);
|
||||
PyModule_AddObject( submodule, "Types", TypeDict );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user