[Python-checkins] r42955 - python/trunk/Modules/unicodedata.c

martin.v.loewis python-checkins at python.org
Fri Mar 10 12:29:32 CET 2006


Author: martin.v.loewis
Date: Fri Mar 10 12:29:32 2006
New Revision: 42955

Modified:
   python/trunk/Modules/unicodedata.c
Log:
Fix refcounting bug.

Modified: python/trunk/Modules/unicodedata.c
==============================================================================
--- python/trunk/Modules/unicodedata.c	(original)
+++ python/trunk/Modules/unicodedata.c	Fri Mar 10 12:29:32 2006
@@ -1186,6 +1186,7 @@
         return;
 
     PyModule_AddStringConstant(m, "unidata_version", UNIDATA_VERSION);
+    Py_INCREF(&UCD_Type);
     PyModule_AddObject(m, "UCD", (PyObject*)&UCD_Type);
 
     /* Previous versions */


More information about the Python-checkins mailing list