[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22308] branches/soc-2008-mxcurioni/source /blender/freestyle/intern/python: Fixed refcount issues in the Python API.
Tamito Kajiyama
rd6t-kjym at asahi-net.or.jp
Sat Aug 8 18:28:10 CEST 2009
Revision: 22308
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22308
Author: kjym3
Date: 2009-08-08 18:28:10 +0200 (Sat, 08 Aug 2009)
Log Message:
-----------
Fixed refcount issues in the Python API.
Modified Paths:
--------------
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp 2009-08-08 14:17:55 UTC (rev 22307)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp 2009-08-08 16:28:10 UTC (rev 22308)
@@ -50,6 +50,7 @@
m = Py_InitModule3("Blender.Freestyle.ContextFunctions", module_functions, module_docstring);
if (m == NULL)
return;
+ Py_INCREF(m);
PyModule_AddObject(module, "ContextFunctions", m);
// from ContextFunctions import *
Modified: branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp
===================================================================
--- branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp 2009-08-08 14:17:55 UTC (rev 22307)
+++ branches/soc-2008-mxcurioni/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp 2009-08-08 16:28:10 UTC (rev 22308)
@@ -171,6 +171,7 @@
m = Py_InitModule3("Blender.Freestyle.Integrator", module_functions, module_docstring);
if (m == NULL)
return;
+ Py_INCREF(m);
PyModule_AddObject(module, "Integrator", m);
// from Integrator import *
More information about the Bf-blender-cvs
mailing list