wireshark/ui
Mikael Kanstrup a8a3903e55 Qt: Free MainWindow at shutdown
MainWindow is allocated on heap on startup but not freed on shutdown.
Free the object at shutdown mainly to silent Valgrind.

When at it also fix two problems with the MainWindow destructor:
- Deleting main_ui_ triggers a currentChanged signal which in turn
  calls mainStackChanged that references the freed main_ui_ object.
  Prevent use after free error by disconnecting from the signal before
  freeing.

- Explicitly free file_set_dialog_ as no rparent perform the cleanup.

Bug: 14071
Change-Id: I9c1fbef04cf68bfffffea57ef298f4896d6583f9
Reviewed-on: https://code.wireshark.org/review/23739
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2017-09-25 23:37:56 +00:00
..
cli Have sequence analysis properly use filters from taps. 2017-09-23 03:42:14 +00:00
gtk GTK: Fix warning for missing action 2017-09-24 20:43:41 +00:00
qt Qt: Free MainWindow at shutdown 2017-09-25 23:37:56 +00:00
win32 print_stream: free memory on exit. 2017-02-27 13:25:26 +00:00
.editorconfig Add EditorConfig settings for most C files 2016-03-08 10:46:35 +00:00
CMakeLists.txt Complete move of tap-sequence-analysis.c functionality to sequence_analysis.c 2017-09-21 22:16:09 +00:00
Makefile.am autotools: Use package flags to configure libpcap 2017-09-24 12:58:06 +00:00
alert_box.c Take the error message generation out of the merge_files routines. 2017-04-20 20:25:59 +00:00
alert_box.h Take the error message generation out of the merge_files routines. 2017-04-20 20:25:59 +00:00
all_files_wildcard.h Add a #define for the wildcard pattern that matches all files. 2016-03-01 02:00:25 +00:00
capture.c iface_lists: Access ifaces member by reference 2017-08-28 14:43:13 +00:00
capture.h
capture_globals.h
capture_ui_utils.c iface_lists: Access ifaces member by reference 2017-08-28 14:43:13 +00:00
capture_ui_utils.h Qt: Update selected interface filter behavior. 2016-02-26 17:28:04 +00:00
commandline.c commandline: fix compilation without pcap. 2017-08-22 16:44:44 +00:00
commandline.h Add hardware timestamping support 2017-08-22 07:55:26 +00:00
console.c A bunch of "{Mac} OS X" -> "macOS" changes. 2017-04-05 19:16:22 +00:00
console.h
decode_as_utils.c Add support for dissector tables of type FT_NONE. 2017-09-16 11:12:52 +00:00
decode_as_utils.h Combine Decode As and port preferences for tcp.port dissector table. 2016-10-08 02:44:53 +00:00
dissect_opts.c Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
dissect_opts.h Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
doxygen.cfg.in
export_object_ui.c Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_object_ui.h Enable exporting objects with tshark 2016-12-02 16:07:35 +00:00
export_pdu_ui_utils.c cf_open() pops up a dialog box on errors; its callers shouldn't do so. 2017-04-20 18:47:34 +00:00
export_pdu_ui_utils.h Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
failure_message.c Use cfile_write_failure_message() in the randpkt code. 2017-04-20 21:07:35 +00:00
failure_message.h Have separate routines for open-for-reading and open-for-writing errors. 2017-04-20 18:24:20 +00:00
file_dialog.h Add JSON export to Qt/GTK UI 2016-06-20 01:22:57 +00:00
filter_files.c Fix weird comment. 2017-06-10 00:53:06 +00:00
filter_files.h Pull the error reporting into {read,save}_filter_list. 2017-04-09 17:57:52 +00:00
firewall_rules.c Firewall rule fixups. 2016-06-06 06:27:47 +00:00
firewall_rules.h Qt: Firewall Rules dialog. 2016-06-01 23:37:25 +00:00
help_url.c extcap: set help page for all extcaps. 2016-12-20 08:23:11 +00:00
help_url.h ui: move filesystem code to wsutil/filesystem.c 2016-12-09 15:50:04 +00:00
iface_lists.c iface_lists: Remove locked field 2017-08-28 16:53:32 +00:00
iface_lists.h
iface_toolbar.c Qt: Add interface toolbar support 2017-04-25 06:19:39 +00:00
iface_toolbar.h Qt: Interface Toolbar improvements 2017-05-02 09:34:01 +00:00
io_graph_item.c io_graph_item: fix false positive array subscript is above array bounds [-Werror=array-bounds] 2017-03-10 02:48:09 +00:00
io_graph_item.h Qt: support selecting the min/max packet from IO Graph 2017-04-05 09:27:32 +00:00
language.c Use "system" for "use system language", and don't try to print a null string. 2016-04-28 19:34:02 +00:00
language.h Use "system" for "use system language", and don't try to print a null string. 2016-04-28 19:34:02 +00:00
last_open_dir.h
main_statusbar.h
mcast_stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
mcast_stream.h
packet_list_utils.c Qt: Support "Resolve Names" with multiple custom column fields 2016-08-27 11:15:34 +00:00
packet_list_utils.h
packet_range.c Move UI-only stuff out of libwireshark. 2017-04-24 03:38:21 +00:00
packet_range.h Move UI-only stuff out of libwireshark. 2017-04-24 03:38:21 +00:00
persfilepath_opt.c
persfilepath_opt.h
preference_utils.c UI: Fix preference utils store helper 2017-07-04 15:13:59 +00:00
preference_utils.h Refactor range preference. 2017-01-07 15:35:18 +00:00
profile.c Clean up some memory leaks in wsutil/filesystem.c 2017-02-19 01:27:14 +00:00
profile.h
progress_dlg.h const gpointer -> gconstpointer 2016-02-16 05:10:49 +00:00
proto_hier_stats.c Properly find packet comments "field" for protocol hierarchy stats. 2017-06-22 23:49:37 +00:00
proto_hier_stats.h
recent.c Fix leaks related to recent settings 2017-09-20 05:47:25 +00:00
recent.h Fix leaks related to recent settings 2017-09-20 05:47:25 +00:00
recent_utils.h
rtp_media.c
rtp_media.h Qt: fix jitter buffer management 2016-02-10 20:26:21 +00:00
rtp_stream.c Revert "tap: change glib functions to wmem." 2016-06-19 10:47:10 +00:00
rtp_stream.h SIP/SDP, RTP: Dissectors shows information about ED-137 related states of radio in info column/VoIP call flow 2016-12-18 11:55:03 +00:00
service_response_time.c
service_response_time.h
simple_dialog.h Clean up handling of enabled/disabled protocols/heuristic dissectors. 2017-04-08 20:40:08 +00:00
software_update.c Qt+Win32: Make software updates more friendly. 2016-12-20 14:18:14 +00:00
software_update.h Qt+Win32: Make software updates more friendly. 2016-12-20 14:18:14 +00:00
ssl_key_export.c
ssl_key_export.h
tap-iax2-analysis.c
tap-iax2-analysis.h
tap-rlc-graph.c Rename routines to clarify what they do. 2017-04-12 04:56:49 +00:00
tap-rlc-graph.h
tap-rtp-analysis.h Save RTP audio to file: RTP Stream Analysis dialog allows save audio for non G.711 codecs and mixed codecs 2016-12-15 05:16:29 +00:00
tap-rtp-common.c [tap-rtp-common] Add EVS to mimetype_and_clock_map 2017-06-14 11:37:28 +00:00
tap-rtp-common.h
tap-sctp-analysis.c SCTP: find right assoc id 2016-10-25 16:24:51 +00:00
tap-sctp-analysis.h SCTP: find right assoc id 2016-10-25 16:24:51 +00:00
tap-tcp-stream.c Rename routines to clarify what they do. 2017-04-12 04:56:49 +00:00
tap-tcp-stream.h Qt: Add Goodput graph (ACK rate), and minor bug fixes 2017-01-22 14:41:49 +00:00
tap_export_pdu.c ERF_TYPE_META write and comment support 2017-07-17 02:08:52 +00:00
tap_export_pdu.h Implement Export PDU for tshark 2016-05-03 10:17:46 +00:00
text_import.c Check for localtime() failing. 2017-04-17 07:48:56 +00:00
text_import.h Allow bigger snapshot lengths for D-Bus captures. 2017-06-05 05:28:26 +00:00
text_import_scanner.h
text_import_scanner.l Disable flex-generated [-Wsign-compare] warnings 2017-09-19 10:06:07 +00:00
time_shift.c Avoid unnecessary replacement source file floorl.c 2016-04-04 23:58:31 +00:00
time_shift.h
traffic_table_ui.c Qt: update endpoint statistics column labels to match GTK ones 2017-03-28 13:43:18 +00:00
traffic_table_ui.h Qt: Conversation time column updates. 2016-09-02 23:53:37 +00:00
ui_util.h Move the declaration of packet_list_select_last_row() to ui/gtk/packet_list.h. 2016-12-12 21:12:58 +00:00
util.c Replace and remove host_ip_af() function 2016-04-08 20:49:22 +00:00
util.h
voip_calls.c Sequence analysis (flow graph) optimizations for dissectors 2017-09-19 06:44:51 +00:00
voip_calls.h Complete move of tap-sequence-analysis.c functionality to sequence_analysis.c 2017-09-21 22:16:09 +00:00