mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-28 00:16:15 +01:00
gtask: fix leak in example code
This commit is contained in:
parent
e608ec7b2e
commit
f8d42cefbd
@ -346,6 +346,7 @@
|
|||||||
* task = g_task_new (self, cancellable, callback, user_data);
|
* task = g_task_new (self, cancellable, callback, user_data);
|
||||||
* g_task_set_task_data (task, cake_data, (GDestroyNotify) cake_data_free);
|
* g_task_set_task_data (task, cake_data, (GDestroyNotify) cake_data_free);
|
||||||
* g_task_run_in_thread (task, bake_cake_thread);
|
* g_task_run_in_thread (task, bake_cake_thread);
|
||||||
|
* g_object_unref (task);
|
||||||
* }
|
* }
|
||||||
*
|
*
|
||||||
* Cake *
|
* Cake *
|
||||||
|
Loading…
Reference in New Issue
Block a user