Free dash list if necessary.
2002-01-03 Anders Carlsson <andersca@gnu.org> * gtk/gtkstyle.c (gtk_default_draw_focus): Free dash list if necessary. * gtk/gtkhsv.c (gtk_hsv_get_focus_gc): Free dash list. * gtk/gtkcolorsel.c (get_focus_gc): Free dash list. * gtk/gtkdnd.c (set_icon_stock_pixbuf): Don't unref the mask if it's NULL.
This commit is contained in:
committed by
Anders Carlsson
parent
88edb0e58e
commit
a11baab148
@ -676,6 +676,8 @@ get_focus_gc (GtkWidget *drawing_area,
|
||||
if (dash_list[0])
|
||||
gdk_gc_set_dashes (gc, 0, dash_list, strlen (dash_list));
|
||||
|
||||
g_free (dash_list);
|
||||
|
||||
return gc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user