X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-recode-different.c;h=a49d05306ea1f17820d3b429a17dc2374374a505;hb=114cd2dc25959a7927730e502300321624f8c07b;hp=a1e2ce848b79c7c0b29650bb9cebb8eba1a7f68f;hpb=96994a54e60e9c95b8bba54c2281acf7059b1203;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-recode-different.c b/src/ui/gui/psppire-dialog-action-recode-different.c index a1e2ce848b..a49d05306e 100644 --- a/src/ui/gui/psppire-dialog-action-recode-different.c +++ b/src/ui/gui/psppire-dialog-action-recode-different.c @@ -165,6 +165,8 @@ render_new_var_name (GtkTreeViewColumn *tree_column, g_object_set (cell, "text", nlp->name, NULL); else g_object_set (cell, "text", "", NULL); + + var_unref (var); } static void @@ -206,7 +208,7 @@ on_change_clicked (GObject *obj, gpointer data) gtk_tree_model_row_changed (model, rows->data, &iter); finish: - g_list_foreach (rows, (GFunc) gtk_tree_path_free, NULL); + g_list_foreach (rows, GFUNC_COMPAT_CAST (gtk_tree_path_free), NULL); g_list_free (rows); } @@ -270,7 +272,7 @@ on_selection_change (GtkTreeSelection *selection, gpointer data) } - g_list_foreach (rows, (GFunc) gtk_tree_path_free, NULL); + g_list_foreach (rows, GFUNC_COMPAT_CAST (gtk_tree_path_free), NULL); g_list_free (rows); }