diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-06-03 22:03:05 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-06-03 22:03:05 +0000 |
commit | dbfb305368f0178348fd613665a5f5bf05f62d8a (patch) | |
tree | b9609c547a4181a21a0de0b99e1e22a577782b69 /ui/gtk/voip_calls_dlg.c | |
parent | d1c1455882aa50f5ffdb5ba5dfdd6c4a4a45f649 (diff) | |
download | wireshark-dbfb305368f0178348fd613665a5f5bf05f62d8a.tar.gz |
g_filename_display_basename() returns a g_mallocated string, so its
callers either need to free it or their callers need to free it or....
This means that cf_get_display_name() must always return a g_mallocated
string and its callers or... must free it.
For some of those callers, create a new set_window_title() routine to do
the work - they're all using the same pattern.
svn path=/trunk/; revision=43047
Diffstat (limited to 'ui/gtk/voip_calls_dlg.c')
-rw-r--r-- | ui/gtk/voip_calls_dlg.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/gtk/voip_calls_dlg.c b/ui/gtk/voip_calls_dlg.c index cbe3901201..44244c996e 100644 --- a/ui/gtk/voip_calls_dlg.c +++ b/ui/gtk/voip_calls_dlg.c @@ -678,11 +678,12 @@ voip_calls_dlg_create(void) GtkWidget *hbuttonbox; GtkWidget *bt_close; GtkWidget *bt_select_all; - const gchar *title_name_ptr; + gchar *title_name_ptr; gchar *win_name; title_name_ptr = cf_get_display_name(&cfile); win_name = g_strdup_printf("%s - VoIP Calls", title_name_ptr); + g_free(title_name_ptr); voip_calls_dlg_w = dlg_window_new(win_name); /* transient_for top_level */ gtk_window_set_destroy_with_parent(GTK_WINDOW(voip_calls_dlg_w), TRUE); |