From 95de5c16310e0ace7dc2de17fd610daf19b9cdea Mon Sep 17 00:00:00 2001 From: Marc-André Lemburg Date: Mon, 8 Apr 2002 08:19:36 +0000 Subject: Move Unicode finalization further down in the chain. Fixes bug #525620. --- Python/pythonrun.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index b22009db172..f0727d3f5b3 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 -- cgit v1.2.3