[gnome-control-center] background: Fix memory leak in background item object
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] background: Fix memory leak in background item object
- Date: Wed, 2 Oct 2013 17:07:43 +0000 (UTC)
commit 9955f17dd47669e3fea3917eca8bb1132bb18a3e
Author: Bastien Nocera <hadess hadess net>
Date: Wed Oct 2 16:30:23 2013 +0200
background: Fix memory leak in background item object
Some fields were never freed.
https://bugzilla.gnome.org/show_bug.cgi?id=709243
panels/background/cc-background-item.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-item.c b/panels/background/cc-background-item.c
index 6e220a9..58105a8 100644
--- a/panels/background/cc-background-item.c
+++ b/panels/background/cc-background-item.c
@@ -796,6 +796,9 @@ cc_background_item_finalize (GObject *object)
g_free (item->priv->secondary_color);
g_free (item->priv->mime_type);
g_free (item->priv->size);
+ g_free (item->priv->source_url);
+ g_free (item->priv->source_xml);
+ g_free (item->priv->mime_type);
if (item->priv->bg != NULL)
g_object_unref (item->priv->bg);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]