Mercurial > dwindows
changeset 1057:0cd0089ee17d
Fix issue with using/freeing the wrong variable in GTK3 font chooser.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 02 Jun 2011 21:40:56 +0000 |
parents | 240bd5fb8453 |
children | fadb18121c56 |
files | gtk3/dw.c |
diffstat | 1 files changed, 6 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/gtk3/dw.c Thu Jun 02 10:58:43 2011 +0000 +++ b/gtk3/dw.c Thu Jun 02 21:40:56 2011 +0000 @@ -2653,15 +2653,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;