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:
Anders Carlsson
2002-01-03 00:30:39 +00:00
committed by Anders Carlsson
parent 88edb0e58e
commit a11baab148
11 changed files with 97 additions and 7 deletions

View File

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