From: Bdale Garbee Date: Tue, 3 Apr 2012 01:41:46 +0000 (-0700) Subject: apply patch in tree X-Git-Tag: debian/3.3.1-2~1 X-Git-Url: https://git.gag.com/?p=debian%2Famanda;a=commitdiff_plain;h=d923a3f5bd691defcb8a7013e8ba6521ea2ecca0 apply patch in tree --- diff --git a/common-src/glib-util.c b/common-src/glib-util.c index 91985e5..6a42e8e 100644 --- a/common-src/glib-util.c +++ b/common-src/glib-util.c @@ -120,15 +120,6 @@ void slist_free_full(GSList * list, GDestroyNotify free_fn) { } #endif -void g_queue_free_full(GQueue * queue) { - while (!g_queue_is_empty(queue)) { - gpointer data; - data = g_queue_pop_head(queue); - amfree(data); - } - g_queue_free(queue); -} - void g_ptr_array_free_full(GPtrArray * array) { size_t i; diff --git a/common-src/glib-util.h b/common-src/glib-util.h index f687fcd..70d0e12 100644 --- a/common-src/glib-util.h +++ b/common-src/glib-util.h @@ -72,7 +72,6 @@ void slist_free_full(GSList * list, GDestroyNotify free_fn); /* These functions all take a GLib container, and call free() on all the * pointers in the container before free()ing the container itself. */ -void g_queue_free_full(GQueue * queue); void g_ptr_array_free_full(GPtrArray * array); /* g_value_compare() does what you expect. It returns TRUE if and