diff options
author | Daniel Boles <dboles@src.gnome.org> | 2017-09-12 22:15:27 +0100 |
---|---|---|
committer | Daniel Boles <dboles@src.gnome.org> | 2017-09-18 23:30:57 +0100 |
commit | 94eecf57dc26b13ccbd22f59fdf678741186b35a (patch) | |
tree | 39c6e614a6d5adc5333366837b798e5e67222144 /gtk/gtkplacessidebar.c | |
parent | 383fa87993b590f0ee1d36c70e9e949679ddc4b5 (diff) | |
download | gtk+-94eecf57dc26b13ccbd22f59fdf678741186b35a.tar.gz |
PlacesSidebar: Unref cloud_manager in dispose()
We ref the CloudProviders singleton in init() but did not unref it in
dispose(). Do so, using g_clear_object().
https://bugzilla.gnome.org/show_bug.cgi?id=787600
Diffstat (limited to 'gtk/gtkplacessidebar.c')
-rw-r--r-- | gtk/gtkplacessidebar.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index ff11d65b5a..9b6a2c72ce 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -4271,6 +4271,10 @@ gtk_places_sidebar_dispose (GObject *object) g_slist_free_full (sidebar->shortcuts, g_object_unref); sidebar->shortcuts = NULL; +#ifdef HAVE_CLOUDPROVIDERS + g_clear_object (&sidebar->cloud_manager); +#endif + G_OBJECT_CLASS (gtk_places_sidebar_parent_class)->dispose (object); } |