From: Martin v. Löwis Date: Fri, 10 Mar 2006 11:29:32 +0000 (+0000) Subject: Fix refcounting bug. X-Git-Tag: v2.5a0~288 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e2f9b2dfb3b9241e6427c8e196881cb348b6e72;p=thirdparty%2FPython%2Fcpython.git Fix refcounting bug. --- diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index a3152c3de483..5a4378babf1d 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 */