projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix leak in dialogs, and correct name of options button.
[pspp-builds.git]
/
src
/
ui
/
gui
/
dialog-common.c
diff --git
a/src/ui/gui/dialog-common.c
b/src/ui/gui/dialog-common.c
index fe2c7937ef45f539848783327f0332ca9a55dfd3..bbdc36a2d6bd3260a0d67cd09737c165ff9e0a1a 100644
(file)
--- 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;
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);
(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))
{
if ( var_is_alpha (v))
{