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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-08-08 20:28:10 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2009-08-08 20:28:10 +0400
commita1d560fc899df335f11ff5382359f431f8f835a2 (patch)
treee95f31daa9bbd7fc7298d7f340ed60d975312d85 /source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
parent56c76ba21cc8798c42a3ed566d658bac273b364b (diff)
Fixed refcount issues in the Python API.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp b/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
index 7a651dafc02..94254084400 100644
--- a/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
+++ b/source/blender/freestyle/intern/python/BPy_ContextFunctions.cpp
@@ -50,6 +50,7 @@ void ContextFunctions_Init( PyObject *module )
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 *