[gnome-control-center/gnome-3-8] background: Fix memory leak in XML signal handling
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] background: Fix memory leak in XML signal handling
- Date: Wed, 2 Oct 2013 17:05:21 +0000 (UTC)
commit 86e61a4eecbe7d07fab1224e3f995f0068ee8a9e
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 2 18:15:25 2013 +0200
background: Fix memory leak in XML signal handling
When emitted in an idle, the item was correctly unref'ed, but not
when emitting the signal straight away.
https://bugzilla.gnome.org/show_bug.cgi?id=709243
panels/background/cc-background-xml.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-xml.c b/panels/background/cc-background-xml.c
index 640746d..4d2a4f0 100644
--- a/panels/background/cc-background-xml.c
+++ b/panels/background/cc-background-xml.c
@@ -316,6 +316,7 @@ cc_background_xml_load_xml_internal (CcBackgroundXml *xml,
emit_added_in_idle (xml, g_object_ref (item));
else
g_signal_emit (G_OBJECT (xml), signals[ADDED], 0, item);
+ g_object_unref (item);
retval = TRUE;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]