X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=src%2Fui%2Fgui%2Fdialog-common.c;h=bbdc36a2d6bd3260a0d67cd09737c165ff9e0a1a;hb=463d2f08bc7b9a2a2e47090f4f1e5a811278db43;hp=fe2c7937ef45f539848783327f0332ca9a55dfd3;hpb=c725a4f64718ef1ee4139c27c94b2eb6447b51b4;p=pspp-builds.git diff --git a/src/ui/gui/dialog-common.c b/src/ui/gui/dialog-common.c index fe2c7937..bbdc36a2 100644 --- a/src/ui/gui/dialog-common.c +++ b/src/ui/gui/dialog-common.c @@ -280,17 +280,14 @@ numeric_only (GtkWidget *source, GtkWidget *dest) for (l = list; l ; l = l->next) { GtkTreePath *path = l->data; - GtkTreePath *fpath; - gint *idx; - - const struct variable *v; - - fpath = gtk_tree_model_filter_convert_path_to_child_path + GtkTreePath *fpath = gtk_tree_model_filter_convert_path_to_child_path (GTK_TREE_MODEL_FILTER (model), path); - idx = gtk_tree_path_get_indices (fpath); + gint *idx = gtk_tree_path_get_indices (fpath); - v = psppire_dict_get_variable (dict, idx[0]); + const struct variable *v = psppire_dict_get_variable (dict, idx[0]); + + gtk_tree_path_free (fpath); if ( var_is_alpha (v)) {