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
This commit is contained in:
Bastien Nocera 2013-10-02 13:36:48 +02:00
parent e7433f1629
commit c2413a3c3e

View file

@ -125,6 +125,9 @@ cc_background_chooser_dialog_dispose (GObject *object)
g_clear_object (&priv->pictures_source); g_clear_object (&priv->pictures_source);
g_clear_object (&priv->colors_source); g_clear_object (&priv->colors_source);
g_clear_object (&priv->wallpapers_source); g_clear_object (&priv->wallpapers_source);
#ifdef HAVE_LIBSOCIALWEB
g_clear_object (&priv->flickr_source);
#endif
g_clear_object (&priv->thumb_factory); g_clear_object (&priv->thumb_factory);
G_OBJECT_CLASS (cc_background_chooser_dialog_parent_class)->dispose (object); G_OBJECT_CLASS (cc_background_chooser_dialog_parent_class)->dispose (object);