From c2413a3c3e9dbca16b6a29e65bf36c05b3dcaf86 Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Wed, 2 Oct 2013 13:36:48 +0200 Subject: [PATCH] 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 file changed, 3 insertions(+) diff --git a/panels/background/cc-background-chooser-dialog.c b/panels/background/cc-background-chooser-dialog.c index 0af61c548..fdf0dbb41 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);