diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index a3152c3de48..5a4378babf1 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -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 */