forked from AuroraMiddleware/gtk
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
This commit is contained in:
parent
383fa87993
commit
94eecf57dc
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user