Fix misuse of Py_INCREF in module creation.

Differential Revision: https://developer.blender.org/D3697
This commit is contained in:
2018-10-08 20:01:55 -03:00
parent d592eb510e
commit cf03658adb
6 changed files with 0 additions and 21 deletions

View File

@@ -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! */