gtask: fix leak in example code

This commit is contained in:
Dan Winship 2014-07-09 10:36:57 -04:00
parent e608ec7b2e
commit f8d42cefbd

View File

@ -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 *