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:
Stephen Swaney
2007-02-05 05:09:15 +00:00
parent 4d5bd6872b
commit 41911da258

View File

@@ -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 );
}