projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed various memory leaks in GUI
[pspp-builds.git]
/
src
/
ui
/
gui
/
compute-dialog.c
diff --git
a/src/ui/gui/compute-dialog.c
b/src/ui/gui/compute-dialog.c
index 2dd1b8f628eacd41168adee33f2f127d15cc2e50..3e8677ba48fd95863555e9bb84de59ef30b7146f 100644
(file)
--- a/
src/ui/gui/compute-dialog.c
+++ b/
src/ui/gui/compute-dialog.c
@@
-153,7
+153,7
@@
generate_syntax (const struct compute_dialog *cd)
gchar *text;
GString *string ;
const gchar *target_name ;
gchar *text;
GString *string ;
const gchar *target_name ;
-
const
gchar *expression;
+ gchar *expression;
const gchar *label;
GtkTextIter start, end;
GtkWidget *target = get_widget_assert (cd->xml, "compute-entry1");
const gchar *label;
GtkTextIter start, end;
GtkWidget *target = get_widget_assert (cd->xml, "compute-entry1");
@@
-208,6
+208,9
@@
generate_syntax (const struct compute_dialog *cd)
g_string_append (string, "EXECUTE.\n");
g_string_append (string, "EXECUTE.\n");
+
+ g_free (expression);
+
text = string->str;
g_string_free (string, FALSE);
text = string->str;
g_string_free (string, FALSE);