summaryrefslogtreecommitdiff
path: root/ui/gtk/expert_comp_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-06-03 22:03:05 +0000
committerGuy Harris <guy@alum.mit.edu>2012-06-03 22:03:05 +0000
commitdbfb305368f0178348fd613665a5f5bf05f62d8a (patch)
treeb9609c547a4181a21a0de0b99e1e22a577782b69 /ui/gtk/expert_comp_dlg.c
parentd1c1455882aa50f5ffdb5ba5dfdd6c4a4a45f649 (diff)
downloadwireshark-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/expert_comp_dlg.c')
-rw-r--r--ui/gtk/expert_comp_dlg.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/ui/gtk/expert_comp_dlg.c b/ui/gtk/expert_comp_dlg.c
index 7e36b18973..afa70330db 100644
--- a/ui/gtk/expert_comp_dlg.c
+++ b/ui/gtk/expert_comp_dlg.c
@@ -213,12 +213,7 @@ expert_dlg_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_
static void
error_set_title(expert_comp_dlg_t *ss)
{
- char *title;
-
- title = g_strdup_printf("Expert Info: %s",
- cf_get_display_name(&cfile));
- gtk_window_set_title(GTK_WINDOW(ss->win), title);
- g_free(title);
+ set_window_title(ss->win, "Expert Info");
}
static void