]> Pileus Git - ~andy/gtk/commitdiff
toolbar: don't leak the sibling path
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Jul 2011 16:33:26 +0000 (12:33 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 1 Jul 2011 16:33:26 +0000 (12:33 -0400)
gtk/gtktoolbar.c

index 1af2a42f186510f7f2ea42fbaa90931f65ec392f..737a5f065a5e2d5c1b6a275fcd710b12ea6ffd7f 100644 (file)
@@ -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;