[gnome-control-center] bolt-client: Don't leak the task on errors
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] bolt-client: Don't leak the task on errors
- Date: Fri, 17 Jul 2020 03:46:06 +0000 (UTC)
commit a558049a4464836a9ad66c39ad11adc7672680a3
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Thu May 7 21:23:15 2020 +0200
bolt-client: Don't leak the task on errors
panels/thunderbolt/bolt-client.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/panels/thunderbolt/bolt-client.c b/panels/thunderbolt/bolt-client.c
index 6353d724c0..1612b65a06 100644
--- a/panels/thunderbolt/bolt-client.c
+++ b/panels/thunderbolt/bolt-client.c
@@ -229,6 +229,7 @@ got_the_client (GObject *source,
{
/* error ownership gets transferred to the task */
g_task_return_error (task, error);
+ g_object_unref (task);
return;
}
@@ -252,6 +253,7 @@ got_the_bus (GObject *source,
g_prefix_error (&error, "could not connect to D-Bus: ");
/* error ownership gets transferred to the task */
g_task_return_error (task, error);
+ g_object_unref (task);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]