Mercurial > dwindows
changeset 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 | 0cd0089ee17d |
children | 2f79f183ff03 |
files | gtk/dw.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
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;