diff gtk3/dw.c @ 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 818698b4a0df
children 2accf180bcfe
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;