[glib] GAsyncQueue: properly set free function
- From: Ryan Lortie <ryanl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GAsyncQueue: properly set free function
- Date: Tue, 4 Oct 2011 02:22:17 +0000 (UTC)
commit 070aefcf59b0238f4cf644cb9ec75cc0b2d4ffaf
Author: Ryan Lortie <desrt desrt ca>
Date: Mon Oct 3 22:18:01 2011 -0400
GAsyncQueue: properly set free function
The copying of code from g_async_queue_new() to g_async_queue_new_full()
in ef08aa786bca87c520ef319b97df4b3ed0782233 copied the setting of the
free function to NULL (instead of the one passed in by the user).
Fix that up so that the test passes again.
https://bugzilla.gnome.org/show_bug.cgi?id=660843
glib/gasyncqueue.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/gasyncqueue.c b/glib/gasyncqueue.c
index f80fca5..b2b3933 100644
--- a/glib/gasyncqueue.c
+++ b/glib/gasyncqueue.c
@@ -143,7 +143,7 @@ g_async_queue_new_full (GDestroyNotify item_free_func)
g_queue_init (&queue->queue);
queue->waiting_threads = 0;
queue->ref_count = 1;
- queue->item_free_func = NULL;
+ queue->item_free_func = item_free_func;
return queue;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]