aboutsummaryrefslogtreecommitdiffstats
path: root/ui/gtk/sctp_chunk_stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ui/gtk/sctp_chunk_stat.c')
-rw-r--r--ui/gtk/sctp_chunk_stat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gtk/sctp_chunk_stat.c b/ui/gtk/sctp_chunk_stat.c
index cbb516df62..edb5de543d 100644
--- a/ui/gtk/sctp_chunk_stat.c
+++ b/ui/gtk/sctp_chunk_stat.c
@@ -263,7 +263,7 @@ static void
sctpstat_init(const char *opt_arg, void *userdata _U_)
{
sctpstat_t *hs;
- gchar *error_string;
+ GString *error_string;
GtkWidget *bbox;
GtkWidget *close_bt;
@@ -296,8 +296,8 @@ sctpstat_init(const char *opt_arg, void *userdata _U_)
sctpstat_packet,
sctpstat_draw);
if(error_string){
- simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string);
- wmem_free(NULL, error_string);
+ simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", error_string->str);
+ g_string_free(error_string, TRUE);
g_free(hs->filter);
g_free(hs);
return;