projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfe54d1
)
PlacesSidebar: Unref cloud_manager in dispose()
author
Daniel Boles
<dboles@src.gnome.org>
Tue, 12 Sep 2017 21:15:27 +0000
(22:15 +0100)
committer
Daniel Boles
<dboles@src.gnome.org>
Mon, 18 Sep 2017 17:20:02 +0000
(18:20 +0100)
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
patch
|
blob
|
history
diff --git
a/gtk/gtkplacessidebar.c
b/gtk/gtkplacessidebar.c
index d0a1d20d8dcd0e75129ad1d88a4eb8662a7e5089..407e17a95e20b762fec49ce13eccae3315e0af50 100644
(file)
--- 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);
}