diff options
author | Gerald Combs <gerald@wireshark.org> | 2005-09-21 14:20:43 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2005-09-21 14:20:43 +0000 |
commit | 551b9bc61d50fa9dba8180bc380d81cc9da6e278 (patch) | |
tree | f122bb2257762582cdeff43258ea966ef1f13e15 /gtk/graph_analysis.c | |
parent | 85ae3a808668f783a820c642b86d375af5cc1b77 (diff) | |
download | wireshark-551b9bc61d50fa9dba8180bc380d81cc9da6e278.tar.gz wireshark-551b9bc61d50fa9dba8180bc380d81cc9da6e278.tar.bz2 wireshark-551b9bc61d50fa9dba8180bc380d81cc9da6e278.zip |
Free our flow graph strings when we're done with them. Add a note about
flow graphs to the release notes, along with other stuff.
svn path=/trunk/; revision=15928
Diffstat (limited to 'gtk/graph_analysis.c')
-rw-r--r-- | gtk/graph_analysis.c | 11 |
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; |