places sidebar: Don't leak shortcuts

Poined out by valgrind.
This commit is contained in:
Matthias Clasen 2015-07-21 21:00:12 -04:00
parent fbee8c5ba3
commit 3243ae6e08

View File

@ -4025,6 +4025,9 @@ gtk_places_sidebar_dispose (GObject *object)
sidebar->source_targets = NULL;
}
g_slist_free_full (sidebar->shortcuts, g_object_unref);
sidebar->shortcuts = NULL;
G_OBJECT_CLASS (gtk_places_sidebar_parent_class)->dispose (object);
}