From: handa Date: Thu, 17 May 2007 11:05:36 +0000 (+0000) Subject: (mlang__fini): Fix previous change. X-Git-Tag: FLT-base~52 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a61f5390f925972b48807056e4fda29c74f2a4a8;p=m17n%2Fm17n-lib.git (mlang__fini): Fix previous change. --- diff --git a/src/language.c b/src/language.c index b416d69..359d0bd 100644 --- a/src/language.c +++ b/src/language.c @@ -115,8 +115,9 @@ mlang__fini (void) M17N_OBJECT_UNREF (language_list); M17N_OBJECT_UNREF (script_list); - MPLIST_DO (pl, langname_list) - M17N_OBJECT_UNREF (MPLIST_VAL (pl)); + if (langname_list) + MPLIST_DO (pl, langname_list) + M17N_OBJECT_UNREF (MPLIST_VAL (pl)); M17N_OBJECT_UNREF (langname_list); }