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/bmesh/bmesh_py_api.c | |
parent | d592eb510e654666cc7b240aa379f4e529cd43c8 (diff) |
Fix misuse of Py_INCREF in module creation.
Differential Revision: https://developer.blender.org/D3697
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_api.c')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_api.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_api.c b/source/blender/python/bmesh/bmesh_py_api.c index 7669f7eb1fd..3edd2bac244 100644 --- a/source/blender/python/bmesh/bmesh_py_api.c +++ b/source/blender/python/bmesh/bmesh_py_api.c @@ -203,21 +203,17 @@ PyObject *BPyInit_bmesh(void) /* bmesh.types */ PyModule_AddObject(mod, "types", (submodule = BPyInit_bmesh_types())); PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule); - Py_INCREF(submodule); /* bmesh.ops (not a real module, exposes module like access). */ PyModule_AddObject(mod, "ops", (submodule = BPyInit_bmesh_ops())); /* PyDict_SetItemString(sys_modules, PyModule_GetNameObject(submodule), submodule); */ PyDict_SetItemString(sys_modules, "bmesh.ops", submodule); /* fake module */ - Py_INCREF(submodule); PyModule_AddObject(mod, "utils", (submodule = BPyInit_bmesh_utils())); PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule); - Py_INCREF(submodule); PyModule_AddObject(mod, "geometry", (submodule = BPyInit_bmesh_geometry())); PyDict_SetItem(sys_modules, PyModule_GetNameObject(submodule), submodule); - Py_INCREF(submodule); return mod; } |