aboutsummaryrefslogtreecommitdiffstats
path: root/wireshark-qt.cpp
diff options
context:
space:
mode:
authorMikael Kanstrup <mikael.kanstrup@gmail.com>2017-09-14 14:53:18 +0200
committerAnders Broman <a.broman58@gmail.com>2017-09-20 05:47:25 +0000
commit3ce30eb1fd395251696c4cbf42b52cfd5b150404 (patch)
tree9d293fbef5a6731ebe6c0126b727411948731053 /wireshark-qt.cpp
parent8f4692f6f94d06d3fa3926333d3ffd3354066f96 (diff)
Fix leaks related to recent settings
Fix leaks related to recent settings reported by Valgrind simply after starting/stopping application. Bug: 14071 Change-Id: Ib4f205218945c8776724899c0dd99cc81b79a41d Reviewed-on: https://code.wireshark.org/review/23599 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'wireshark-qt.cpp')
-rw-r--r--wireshark-qt.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/wireshark-qt.cpp b/wireshark-qt.cpp
index 40edbea..61fac58 100644
--- a/wireshark-qt.cpp
+++ b/wireshark-qt.cpp
@@ -487,6 +487,7 @@ int main(int argc, char *qt_argv[])
}
profile_store_persconffiles(TRUE);
+ recent_init();
/* Read the profile independent recent file. We have to do this here so we can */
/* set the profile before it can be set from the command line parameter */
@@ -938,6 +939,7 @@ int main(int argc, char *qt_argv[])
ret_val = wsApp->exec();
+ recent_cleanup();
epan_cleanup();
#ifdef HAVE_EXTCAP