mirror of
https://github.com/python/cpython.git
synced 2024-11-25 19:03:49 +08:00
Fix refcounting bug.
This commit is contained in:
parent
5bd7c02298
commit
0e2f9b2dfb
@ -1186,6 +1186,7 @@ initunicodedata(void)
|
||||
return;
|
||||
|
||||
PyModule_AddStringConstant(m, "unidata_version", UNIDATA_VERSION);
|
||||
Py_INCREF(&UCD_Type);
|
||||
PyModule_AddObject(m, "UCD", (PyObject*)&UCD_Type);
|
||||
|
||||
/* Previous versions */
|
||||
|
Loading…
Reference in New Issue
Block a user