g_filename_display_basename() returns a g_mallocated string, so its
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 3 Jun 2012 22:03:05 +0000 (22:03 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sun, 3 Jun 2012 22:03:05 +0000 (22:03 +0000)
commit81cb90ee97ee7b21a5422ba15c2cb69e4d79cae8
treeb9609c547a4181a21a0de0b99e1e22a577782b69
parente6fc017c618982a81f701f59c6483c065e546fe0
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.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@43047 f5534014-38df-0310-8fa8-9805f1628bb7
38 files changed:
file.c
file.h
ui/gtk/afp_stat.c
ui/gtk/camel_srt.c
ui/gtk/capture_file_dlg.c
ui/gtk/compare_stat.c
ui/gtk/conversations_table.c
ui/gtk/dcerpc_stat.c
ui/gtk/diameter_stat.c
ui/gtk/expert_comp_dlg.c
ui/gtk/fc_stat.c
ui/gtk/graph_analysis.c
ui/gtk/gtp_stat.c
ui/gtk/gui_utils.c
ui/gtk/gui_utils.h
ui/gtk/hostlist_table.c
ui/gtk/io_stat.c
ui/gtk/ldap_stat.c
ui/gtk/mac_lte_stat_dlg.c
ui/gtk/main.c
ui/gtk/main_statusbar.c
ui/gtk/mcast_stream_dlg.c
ui/gtk/ncp_stat.c
ui/gtk/rlc_lte_stat_dlg.c
ui/gtk/rpc_progs.c
ui/gtk/rpc_stat.c
ui/gtk/rtp_player.c
ui/gtk/scsi_stat.c
ui/gtk/sctp_assoc_analyse.c
ui/gtk/sctp_byte_graph_dlg.c
ui/gtk/sctp_chunk_stat_dlg.c
ui/gtk/sctp_graph_dlg.c
ui/gtk/smb2_stat.c
ui/gtk/smb_stat.c
ui/gtk/tap_param_dlg.c
ui/gtk/tcp_graph.c
ui/gtk/voip_calls_dlg.c
ui/gtk/wlan_stat_dlg.c