[gnome-control-center/gnome-3-8] background: Fix leak of the Flickr source
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] background: Fix leak of the Flickr source
- Date: Wed, 2 Oct 2013 17:04:56 +0000 (UTC)
commit 42f2f437f192c9bdb74d567355680d81115b8be8
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 9ded14d..c5534b0 100644
--- a/panels/background/cc-background-chooser-dialog.c
+++ b/panels/background/cc-background-chooser-dialog.c
@@ -120,6 +120,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]