[gtk+/gtk-3-22] PlacesSidebar: Unref cloud_manager in dispose()



commit c18ac0c4e39c2232614c810c6e742cc577403dec
Author: Daniel Boles <dboles src gnome org>
Date:   Tue Sep 12 22:15:27 2017 +0100

    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

 gtk/gtkplacessidebar.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index d0a1d20..407e17a 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -4313,6 +4313,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);
 }
 


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