diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2011-07-01 12:33:26 -0400 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2011-07-01 12:33:26 -0400 |
commit | 668790ddee0f8c53e3409932e28c4f6d0077e62e (patch) | |
tree | b20b0c74c83166416aff60915f24026d134711c2 | |
parent | 34d85f04e567de22c2b8faeb9a0c580050974efd (diff) | |
download | gtk+-668790ddee0f8c53e3409932e28c4f6d0077e62e.tar.gz |
toolbar: don't leak the sibling path
-rw-r--r-- | gtk/gtktoolbar.c | 6 |
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; |