mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
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:
parent
219aa66d5d
commit
a5aaf6b8a5
@ -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)
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user