summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2002-04-08 08:19:36 (GMT)
committerMarc-André Lemburg <mal@egenix.com>2002-04-08 08:19:36 (GMT)
commit95de5c16310e0ace7dc2de17fd610daf19b9cdea (patch)
treeaf508de17eadd60968a55ad972e03c86e8838b65
parentbc82ab1c9f9ab32dd7257e913004a06f3cf4dda9 (diff)
downloadcpython-95de5c16310e0ace7dc2de17fd610daf19b9cdea.zip
cpython-95de5c16310e0ace7dc2de17fd610daf19b9cdea.tar.gz
cpython-95de5c16310e0ace7dc2de17fd610daf19b9cdea.tar.bz2
Move Unicode finalization further down in the chain.
Fixes bug #525620.
-rw-r--r--Python/pythonrun.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Python/pythonrun.c b/Python/pythonrun.c
index b22009d..f0727d3 100644
--- a/Python/pythonrun.c
+++ b/Python/pythonrun.c
@@ -219,11 +219,6 @@ Py_Finalize(void)
/* Disable signal handling */
PyOS_FiniInterrupts();
-#ifdef Py_USING_UNICODE
- /* Cleanup Unicode implementation */
- _PyUnicode_Fini();
-#endif
-
/* Cleanup Codec registry */
_PyCodecRegistry_Fini();
@@ -268,6 +263,11 @@ Py_Finalize(void)
PyInt_Fini();
PyFloat_Fini();
+#ifdef Py_USING_UNICODE
+ /* Cleanup Unicode implementation */
+ _PyUnicode_Fini();
+#endif
+
/* XXX Still allocated:
- various static ad-hoc pointers to interned strings
- int and float free list blocks