printers: Fix incorrect g_task_run_in_thread reference usage
There is a reference held during this call so don't need to explicitly unref inside the function.
This commit is contained in:
parent
4d20e682c2
commit
172ab6ef6c
1 changed files with 1 additions and 2 deletions
|
@ -749,7 +749,6 @@ _pp_host_get_lpd_devices_thread (GTask *task,
|
|||
|
||||
out:
|
||||
g_task_return_pointer (task, devices, (GDestroyNotify) pp_devices_list_free);
|
||||
g_object_unref (task);
|
||||
|
||||
g_free (address);
|
||||
}
|
||||
|
@ -760,7 +759,7 @@ pp_host_get_lpd_devices_async (PpHost *host,
|
|||
GAsyncReadyCallback callback,
|
||||
gpointer user_data)
|
||||
{
|
||||
GTask *task;
|
||||
g_autoptr(GTask) task = NULL;
|
||||
|
||||
task = g_task_new (G_OBJECT (host), cancellable, callback, user_data);
|
||||
g_task_run_in_thread (task, _pp_host_get_lpd_devices_thread);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue