aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/voip_calls_dialog.cpp
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2015-10-25 19:24:06 +0100
committerPascal Quantin <pascal.quantin@gmail.com>2015-10-26 11:06:51 +0000
commite2203f5aed1eef900c7568b6d14f3e303e271b7c (patch)
treeacdb69aa22bab5ee178d3713d2cbfcf82557f0bb /ui/qt/voip_calls_dialog.cpp
parent5dffa81e8cc45dfefb974768e90533097ecee996 (diff)
Qt: fix memory leaks in VoIP calls window
- Add free of h245_labels to voip_calls_remove_all_tap_listeners() so that memory is not leaked with Qt GUI - Call voip_calls_reset_all_taps() from VoipCallsDialog destructor so as to free allocated memory Change-Id: I46945b5d475d8c1267819021a4ed2782c531a0c6 Reviewed-on: https://code.wireshark.org/review/11268 Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'ui/qt/voip_calls_dialog.cpp')
-rw-r--r--ui/qt/voip_calls_dialog.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui/qt/voip_calls_dialog.cpp b/ui/qt/voip_calls_dialog.cpp
index 38b919c94a..486e3a604c 100644
--- a/ui/qt/voip_calls_dialog.cpp
+++ b/ui/qt/voip_calls_dialog.cpp
@@ -214,8 +214,10 @@ VoipCallsDialog::~VoipCallsDialog()
{
delete ui;
+ voip_calls_reset_all_taps(&tapinfo_);
voip_calls_remove_all_tap_listeners(&tapinfo_);
sequence_analysis_info_free(tapinfo_.graph_analysis);
+ g_queue_free(tapinfo_.callsinfos);
}
void VoipCallsDialog::captureFileClosing()