From a1d560fc899df335f11ff5382359f431f8f835a2 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Sat, 8 Aug 2009 16:28:10 +0000 Subject: Fixed refcount issues in the Python API. --- source/blender/freestyle/intern/python/BPy_IntegrationType.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/freestyle/intern/python/BPy_IntegrationType.cpp') diff --git a/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp b/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp index d794b0c560e..adab3636b0d 100644 --- a/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp +++ b/source/blender/freestyle/intern/python/BPy_IntegrationType.cpp @@ -171,6 +171,7 @@ PyMODINIT_FUNC IntegrationType_Init( PyObject *module ) 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 * -- cgit v1.2.3