[gnome-control-center/gnome-3-8] background: Fix memory leak in background item object



commit 4102ad266e34422284906de3b34652a24e2f6455
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 8f6e1d2..b991a89 100644
--- a/panels/background/cc-background-item.c
+++ b/panels/background/cc-background-item.c
@@ -798,6 +798,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]