(CHISE_DS_close): Use `chise_destroy_name_table'.
authortomo <tomo>
Mon, 1 Mar 2004 01:41:08 +0000 (01:41 +0000)
committertomo <tomo>
Mon, 1 Mar 2004 01:41:08 +0000 (01:41 +0000)
chise.c

diff --git a/chise.c b/chise.c
index 1482e73..a3048bd 100644 (file)
--- a/chise.c
+++ b/chise.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 MORIOKA Tomohiko
+/* Copyright (C) 2003,2004 MORIOKA Tomohiko
    This file is part of the CHISE Library.
 
    The CHISE Library is free software; you can redistribute it and/or
@@ -124,9 +124,9 @@ CHISE_DS_close (CHISE_DS *ds)
   if (ds->location != NULL)
     free (ds->location);
   if (ds->feature_names != NULL)
-    free (ds->feature_names);
+    chise_destroy_name_table (ds->feature_names);
   if (ds->ccs_names != NULL)
-    free (ds->ccs_names);
+    chise_destroy_name_table (ds->ccs_names);
   free (ds);
   return 0;
 }