summaryrefslogtreecommitdiffstats
path: root/Modules/unicodedata.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-03-10 11:29:32 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-03-10 11:29:32 (GMT)
commit0e2f9b2dfb3b9241e6427c8e196881cb348b6e72 (patch)
tree1b6ac9f68d8fc468d42b8d8122f1bf29bafaadce /Modules/unicodedata.c
parent5bd7c0229826bc8b71879a3600a34d21045bc031 (diff)
downloadcpython-0e2f9b2dfb3b9241e6427c8e196881cb348b6e72.zip
cpython-0e2f9b2dfb3b9241e6427c8e196881cb348b6e72.tar.gz
cpython-0e2f9b2dfb3b9241e6427c8e196881cb348b6e72.tar.bz2
Fix refcounting bug.
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r--Modules/unicodedata.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index a3152c3..5a4378b 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 */