Commit a5aaf6b8 authored by Matthias Clasen's avatar Matthias Clasen Committed by Matthias Clasen

Don't leak dash_list.

2006-06-19  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Don't leak
	dash_list.
parent 219aa66d
2006-06-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Don't leak
dash_list.
Make transparent tray icons work. (#320034, based on a
patch by Dan Winship)
......
2006-06-19 Matthias Clasen <mclasen@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_set_grid_lines): Don't leak
dash_list.
Make transparent tray icons work. (#320034, based on a
patch by Dan Winship)
......
......@@ -14494,6 +14494,7 @@ gtk_tree_view_set_grid_lines (GtkTreeView *tree_view,
if (grid_lines == GTK_TREE_VIEW_GRID_LINES_NONE)
{
tree_view->priv->grid_line_gc = NULL;
g_free (dash_list);
return;
}
......@@ -14505,6 +14506,7 @@ gtk_tree_view_set_grid_lines (GtkTreeView *tree_view,
GDK_LINE_ON_OFF_DASH,
GDK_CAP_BUTT, GDK_JOIN_MITER);
gdk_gc_set_dashes (tree_view->priv->grid_line_gc, 0, dash_list, 2);
g_free (dash_list);
gtk_widget_queue_draw (GTK_WIDGET (tree_view));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment