diff options
author | mano-wii <germano.costa@ig.com.br> | 2018-10-09 02:01:55 +0300 |
---|---|---|
committer | mano-wii <germano.costa@ig.com.br> | 2018-10-09 02:01:55 +0300 |
commit | cf03658adbbc17d093be123c06d1611c25c7fea6 (patch) | |
tree | 588dd0b44786066cc700ed6cd1aaba5bab1a0527 /source/blender/python/intern | |
parent | d592eb510e654666cc7b240aa379f4e529cd43c8 (diff) |
Fix misuse of Py_INCREF in module creation.
Differential Revision: https://developer.blender.org/D3697
Diffstat (limited to 'source/blender/python/intern')
-rw-r--r-- | source/blender/python/intern/bpy_props.c | 5 | ||||
-rw-r--r-- | source/blender/python/intern/bpy_utils_units.c | 1 |
2 files changed, 0 insertions, 6 deletions
diff --git a/source/blender/python/intern/bpy_props.c b/source/blender/python/intern/bpy_props.c index 0db2fc189c1..fef3a0703d2 100644 --- a/source/blender/python/intern/bpy_props.c +++ b/source/blender/python/intern/bpy_props.c @@ -3203,11 +3203,6 @@ PyObject *BPY_rna_props(void) submodule = PyModule_Create(&props_module); PyDict_SetItemString(PyImport_GetModuleDict(), props_module.m_name, submodule); - /* INCREF since its its assumed that all these functions return the - * module with a new ref like PyDict_New, since they are passed to - * PyModule_AddObject which steals a ref */ - Py_INCREF(submodule); - /* api needs the PyObjects internally */ submodule_dict = PyModule_GetDict(submodule); diff --git a/source/blender/python/intern/bpy_utils_units.c b/source/blender/python/intern/bpy_utils_units.c index cbd8b67d1ce..1d1108e1af0 100644 --- a/source/blender/python/intern/bpy_utils_units.c +++ b/source/blender/python/intern/bpy_utils_units.c @@ -323,7 +323,6 @@ PyObject *BPY_utils_units(void) submodule = PyModule_Create(&bpyunits_module); PyDict_SetItemString(PyImport_GetModuleDict(), bpyunits_module.m_name, submodule); - Py_INCREF(submodule); /* Finalize our unit systems and types structseq definitions! */ |