summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-07-01 12:33:26 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2011-07-01 12:33:26 -0400
commit668790ddee0f8c53e3409932e28c4f6d0077e62e (patch)
treeb20b0c74c83166416aff60915f24026d134711c2
parent34d85f04e567de22c2b8faeb9a0c580050974efd (diff)
downloadgtk+-668790ddee0f8c53e3409932e28c4f6d0077e62e.tar.gz
toolbar: don't leak the sibling path
-rw-r--r--gtk/gtktoolbar.c6
1 files changed, 6 insertions, 0 deletions
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;