From: John Darrington Date: Fri, 1 Jul 2011 16:38:05 +0000 (+0200) Subject: Avoid GtkCritical in recode dialog X-Git-Tag: v0.7.9~238 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03d3f658e031473bfd51def9c890590659346b25;p=pspp-builds.git Avoid GtkCritical in recode dialog --- diff --git a/src/ui/gui/recode-dialog.c b/src/ui/gui/recode-dialog.c index 55376644..5d97c156 100644 --- a/src/ui/gui/recode-dialog.c +++ b/src/ui/gui/recode-dialog.c @@ -364,7 +364,7 @@ refresh (PsppireDialog *dialog, struct recode_dialog *rd) gtk_widget_set_sensitive (rd->new_name_entry, FALSE); gtk_widget_set_sensitive (rd->new_label_entry, FALSE); - if ( rd->different ) + if ( rd->different && rd->varmap ) g_hash_table_remove_all (rd->varmap); gtk_list_store_clear (GTK_LIST_STORE (rd->value_map)); @@ -1068,7 +1068,8 @@ recode_dialog (PsppireDataWindow *de, gboolean diff) break; } - g_hash_table_destroy (rd.varmap); + if (rd.varmap) + g_hash_table_destroy (rd.varmap); gtk_list_store_clear (GTK_LIST_STORE (rd.value_map)); g_object_unref (rd.value_map);