From: Marc-André Lemburg Date: Mon, 8 Apr 2002 08:19:36 +0000 (+0000) Subject: Move Unicode finalization further down in the chain. X-Git-Tag: v2.3c1~6091 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=95de5c16310e0ace7dc2de17fd610daf19b9cdea;p=thirdparty%2FPython%2Fcpython.git Move Unicode finalization further down in the chain. Fixes bug #525620. --- diff --git a/Python/pythonrun.c b/Python/pythonrun.c index b22009db1726..f0727d3f5b37 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