]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
This may well be my final checkin before 2.2.1.
authorMichael W. Hudson <mwh@python.net>
Mon, 8 Apr 2002 17:00:54 +0000 (17:00 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 8 Apr 2002 17:00:54 +0000 (17:00 +0000)
If you think I've forgotten something, now is a good
time to howl (although I won't read the howl for a good
few hours 'cause I'm going home).

backport lemburg's checkin of
    revision 2.158 of pythonrun.c

Move Unicode finalization further down in the chain.
Fixes bug #525620.

Python/pythonrun.c

index ad92004f9a5f694623ed46e246c66da7fa0d5136..4b5cba585159c5950b1909e7b1be458715dca006 100644 (file)
@@ -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