From f3fd05839761ff4d0287be6d2f63a5e89f008558 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 5 Dec 2005 07:02:08 +0000 Subject: [PATCH] (m17n_fini_core): Call mtext__prop_fini at after mplist__fini. --- src/m17n-core.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/m17n-core.c b/src/m17n-core.c index 3620417..b6e60e8 100644 --- a/src/m17n-core.c +++ b/src/m17n-core.c @@ -578,14 +578,16 @@ m17n_fini_core (void) MDEBUG_PUSH_TIME (); mchartable__fini (); MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize chartable module.")); - mtext__prop_fini (); - MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize textprop module.")); mtext__fini (); MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize mtext module.")); msymbol__fini (); MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize symbol module.")); mplist__fini (); MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize plist module.")); + /* We must call this after the aboves because it frees interval + pools. */ + mtext__prop_fini (); + MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize textprop module.")); MDEBUG_POP_TIME (); MDEBUG_PRINT_TIME ("FINI", (stderr, " to finalize the core modules.")); MDEBUG_POP_TIME (); -- 1.7.10.4