(mlang__fini): Fix previous change.
authorhanda <handa>
Thu, 17 May 2007 11:05:36 +0000 (11:05 +0000)
committerhanda <handa>
Thu, 17 May 2007 11:05:36 +0000 (11:05 +0000)
src/language.c

index b416d69..359d0bd 100644 (file)
@@ -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);
 }