diff -urN ochusha-0.5.8.2/libmodifiedgtk2/mod_tree_data_list.c ochusha-0.5.8.2-glib-2.10/libmodifiedgtk2/mod_tree_data_list.c --- ochusha-0.5.8.2/libmodifiedgtk2/mod_tree_data_list.c 2005-06-06 22:28:01.000000000 +0900 +++ ochusha-0.5.8.2-glib-2.10/libmodifiedgtk2/mod_tree_data_list.c 2006-08-01 17:34:32.000000000 +0900 @@ -38,9 +38,6 @@ #include "mod_tree_data_list.h" #include -static GMemChunk *tree_chunk = NULL; -#define TREE_CHUNK_PREALLOCS 128 - /* node allocation */ ModTreeDataList * @@ -48,13 +45,7 @@ { ModTreeDataList *list; - if (tree_chunk == NULL) - tree_chunk = g_mem_chunk_new ("treedatalist mem chunk", - sizeof (ModTreeDataList), - sizeof (ModTreeDataList) * TREE_CHUNK_PREALLOCS, - G_ALLOC_AND_FREE); - - list = g_chunk_new (ModTreeDataList, tree_chunk); + list = g_slice_new (ModTreeDataList); memset (list, 0, sizeof (ModTreeDataList)); return list; @@ -79,7 +70,7 @@ else if (g_type_is_a (column_headers [i], G_TYPE_BOXED) && tmp->data.v_pointer != NULL) g_boxed_free (column_headers [i], (gpointer) tmp->data.v_pointer); - g_mem_chunk_free (tree_chunk, tmp); + g_slice_free (ModTreeDataList, tmp); i++; tmp = next; }