aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/graph_analysis.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/graph_analysis.c')
-rw-r--r--gtk/graph_analysis.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk/graph_analysis.c b/gtk/graph_analysis.c
index f8dfa0a418..2e1e4a046b 100644
--- a/gtk/graph_analysis.c
+++ b/gtk/graph_analysis.c
@@ -261,6 +261,11 @@ static void overwrite (GString *gstr, char *text_to_insert, guint32 p1, guint32
}
+/*
+ * XXX - We might want to refactor this to write the graph data directly to
+ * the file instead of loading everything into strings first.
+ */
+
/****************************************************************************/
static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data)
{
@@ -447,6 +452,12 @@ static gboolean dialog_graph_dump_to_file(graph_analysis_data_t* user_data)
fprintf(of,"%s\n",tmp_str->str);
}
+ g_string_free(label_string, TRUE);
+ g_string_free(empty_line, TRUE);
+ g_string_free(separator_line, TRUE);
+ g_string_free(tmp_str, TRUE);
+ g_string_free(tmp_str2, TRUE);
+
fclose (of);
return TRUE;