From 0e2f9b2dfb3b9241e6427c8e196881cb348b6e72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Fri, 10 Mar 2006 11:29:32 +0000 Subject: [PATCH] Fix refcounting bug. --- Modules/unicodedata.c | 1 + 1 file changed, 1 insertion(+) 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 */