# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1307050966 0 # Node ID fadb18121c56949ac41b553a46953910c489eda6 # Parent 0cd0089ee17d5de8904c2ad2a441e4ec90b85c4a Fix issue with using/freeing the wrong variable in GTK2 font chooser. diff -r 0cd0089ee17d -r fadb18121c56 gtk/dw.c --- 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;