summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2015-01-25 15:48:33 +0000
committerCosimo Cecchi <cosimoc@gnome.org>2015-01-26 11:19:22 +0000
commit2311e8790fc2eac3e8288bc368d9ad841cfca813 (patch)
tree1107988505b8da2f55866c78613545b356c60f5c
parente407fc3d9d094d2bacdf315b459ad3eef790166b (diff)
downloadnautilus-2311e8790fc2eac3e8288bc368d9ad841cfca813.tar.gz
toolbar: plug a couple of memory leaks
-rw-r--r--src/nautilus-toolbar.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/nautilus-toolbar.c b/src/nautilus-toolbar.c
index 2e134c011..461a6a58f 100644
--- a/src/nautilus-toolbar.c
+++ b/src/nautilus-toolbar.c
@@ -519,6 +519,9 @@ nautilus_toolbar_dispose (GObject *obj)
toolbar_update_appearance, self);
unschedule_menu_popup_timeout (self);
+ g_clear_object (&self->priv->zoom_adjustment_grid);
+ g_clear_object (&self->priv->zoom_adjustment_list);
+
G_OBJECT_CLASS (nautilus_toolbar_parent_class)->dispose (obj);
}