Mercurial > dwindows
diff gtk/dw.c @ 1058:fadb18121c56
Fix issue with using/freeing the wrong variable in GTK2 font chooser.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 02 Jun 2011 21:42:46 +0000 |
parents | 818698b4a0df |
children | dbaf1b11c301 |
line wrap: on
line diff
--- a/gtk/dw.c Thu Jun 02 21:40:56 2011 +0000 +++ b/gtk/dw.c Thu Jun 02 21:42:46 2011 +0000 @@ -2816,15 +2816,15 @@ if(_dw_font_active) { DW_MUTEX_UNLOCK; - if(name) - free(name); + if(font) + free(font); return NULL; } fd = (GtkFontSelectionDialog *)gtk_font_selection_dialog_new("Choose font"); - if(name) - { - gtk_font_selection_dialog_set_font_name(fd, name); - free(name); + if(font) + { + gtk_font_selection_dialog_set_font_name(fd, font); + free(font); } _dw_font_active = 1;