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 *


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to