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.
This commit is contained in:
Matthias Clasen 2006-06-20 01:57:26 +00:00 committed by Matthias Clasen
parent 219aa66d5d
commit a5aaf6b8a5
3 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,8 @@
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)

View File

@ -1,5 +1,8 @@
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)

View File

@ -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));
}