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:
Diffstat (limited to 'source/blender/python/api2_2x/Blender.c')
-rw-r--r--source/blender/python/api2_2x/Blender.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/python/api2_2x/Blender.c b/source/blender/python/api2_2x/Blender.c
index 896ea09bfd4..5c67089abc0 100644
--- a/source/blender/python/api2_2x/Blender.c
+++ b/source/blender/python/api2_2x/Blender.c
@@ -709,7 +709,10 @@ static PyObject *Blender_ShowHelp(PyObject *self, PyObject *args)
return EXPP_ReturnPyObjError(PyExc_MemoryError,
"can't create py dictionary!");
- EXPP_dict_set_item_str(rkeyd, "script", script);
+ /* note: don't use EXPP_dict_set_item_str for 'script', which is an
+ * argument to the function we're in and so shouldn't be decref'ed: */
+ PyDict_SetItemString(rkeyd, "script", script);
+
EXPP_dict_set_item_str(bpy_registryDict, "__help_browser", rkeyd);
arglist = Py_BuildValue("(s)", hspath);