From 668790ddee0f8c53e3409932e28c4f6d0077e62e Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Fri, 1 Jul 2011 12:33:26 -0400 Subject: [PATCH] toolbar: don't leak the sibling path --- gtk/gtktoolbar.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c index 1af2a42f18..737a5f065a 100644 --- a/gtk/gtktoolbar.c +++ b/gtk/gtktoolbar.c @@ -3137,6 +3137,12 @@ gtk_toolbar_finalize (GObject *object) if (priv->arrow_button) gtk_widget_unparent (priv->arrow_button); + if (priv->sibling_path != NULL) + { + gtk_widget_path_unref (priv->sibling_path); + priv->sibling_path = NULL; + } + for (list = priv->content; list != NULL; list = list->next) { ToolbarContent *content = list->data;