mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 19:36:18 +01:00
GAsyncQueue: properly set free function
The copying of code from g_async_queue_new() to g_async_queue_new_full()
in ef08aa786b
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
This commit is contained in:
parent
3f982cb9ab
commit
070aefcf59
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user