(mlang__fini): Unref each element of langname_list.
authorhanda <handa>
Wed, 16 May 2007 01:32:39 +0000 (01:32 +0000)
committerhanda <handa>
Wed, 16 May 2007 01:32:39 +0000 (01:32 +0000)
src/language.c

index 230d0cb..b416d69 100644 (file)
@@ -111,8 +111,12 @@ mlang__init ()
 void
 mlang__fini (void)
 {
+  MPlist *pl;
+
   M17N_OBJECT_UNREF (language_list);
   M17N_OBJECT_UNREF (script_list);
+  MPLIST_DO (pl, langname_list)
+    M17N_OBJECT_UNREF (MPLIST_VAL (pl));
   M17N_OBJECT_UNREF (langname_list);
 }