[mutter/wip/bg-fixes: 1/5] background: fix task leak in load_file_async
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/bg-fixes: 1/5] background: fix task leak in load_file_async
- Date: Tue, 26 Mar 2013 17:47:53 +0000 (UTC)
commit 0b7b4876b8fe4f95fdf91e5c479c619bde14823e
Author: Ray Strode <rstrode redhat com>
Date: Sun Mar 24 23:06:24 2013 -0400
background: fix task leak in load_file_async
g_task_run_in_thread takes its own reference to the
task passed in, so we can unref the initial reference.
https://bugzilla.gnome.org/show_bug.cgi?id=696157
src/compositor/meta-background.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/compositor/meta-background.c b/src/compositor/meta-background.c
index 7876d59..f75d881 100644
--- a/src/compositor/meta-background.c
+++ b/src/compositor/meta-background.c
@@ -1129,6 +1129,7 @@ meta_background_load_file_async (MetaBackground *self,
g_task_set_task_data (task, task_data, (GDestroyNotify) load_file_task_data_free);
g_task_run_in_thread (task, (GTaskThreadFunc) load_file);
+ g_object_unref (task);
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]