[gtk+] toolbar: don't leak the sibling path



commit 668790ddee0f8c53e3409932e28c4f6d0077e62e
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Jul 1 12:33:26 2011 -0400

    toolbar: don't leak the sibling path

 gtk/gtktoolbar.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 1af2a42..737a5f0 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]