Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Swaney <sswaney@centurytel.net>2007-02-05 08:09:15 +0300
committerStephen Swaney <sswaney@centurytel.net>2007-02-05 08:09:15 +0300
commit41911da25880f01a9bd8a0ae05ca480cede8b1cb (patch)
treebbd63e2115d6cb18ef09658b41d791ac8ef69637 /source/blender/python/api2_2x/Modifier.c
parent4d5bd6872b9ee27fd8d8a5ac62e2128b7b554e21 (diff)
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.
Diffstat (limited to 'source/blender/python/api2_2x/Modifier.c')
-rw-r--r--source/blender/python/api2_2x/Modifier.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/python/api2_2x/Modifier.c b/source/blender/python/api2_2x/Modifier.c
index 4ed245fa1cf..34e36d2a6e6 100644
--- a/source/blender/python/api2_2x/Modifier.c
+++ b/source/blender/python/api2_2x/Modifier.c
@@ -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 );
}