[gnome-control-center] background: Fix leak of the Flickr source



commit c2413a3c3e9dbca16b6a29e65bf36c05b3dcaf86
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Oct 2 13:36:48 2013 +0200

    background: Fix leak of the Flickr source
    
    The Flickr source was never disposed of when destroying the
    selection dialog.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709243

 panels/background/cc-background-chooser-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/panels/background/cc-background-chooser-dialog.c 
b/panels/background/cc-background-chooser-dialog.c
index 0af61c5..fdf0dbb 100644
--- a/panels/background/cc-background-chooser-dialog.c
+++ b/panels/background/cc-background-chooser-dialog.c
@@ -125,6 +125,9 @@ cc_background_chooser_dialog_dispose (GObject *object)
   g_clear_object (&priv->pictures_source);
   g_clear_object (&priv->colors_source);
   g_clear_object (&priv->wallpapers_source);
+#ifdef HAVE_LIBSOCIALWEB
+  g_clear_object (&priv->flickr_source);
+#endif
   g_clear_object (&priv->thumb_factory);
 
   G_OBJECT_CLASS (cc_background_chooser_dialog_parent_class)->dispose (object);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]