summaryrefslogtreecommitdiff
path: root/ui/qt/rtp_analysis_dialog.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-07-24 10:24:15 -0700
committerGerald Combs <gerald@wireshark.org>2015-07-24 20:03:28 +0000
commit7be155ee1ec61166bdf1a525902c05b378c75b66 (patch)
treecff6e59d65849227272d850e3c800e5d338f333a /ui/qt/rtp_analysis_dialog.cpp
parentd24614c77a3eb5e889dbe4caaf63b065d1bb3c4a (diff)
downloadwireshark-7be155ee1ec61166bdf1a525902c05b378c75b66.tar.gz
Try deleting WiresharkDialog when we close it.
QDialog::accept and ::reject hide the dialog but don't delete it. In the case of WiresharkDialog and its subclasses we might leak memory or leave files open. Call deleteLater when we close the dialog. Change-Id: Ie0b848a7deeeee4667925b0d886e498f13a86bfc Reviewed-on: https://code.wireshark.org/review/9781 Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/rtp_analysis_dialog.cpp')
-rw-r--r--ui/qt/rtp_analysis_dialog.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/ui/qt/rtp_analysis_dialog.cpp b/ui/qt/rtp_analysis_dialog.cpp
index ab94ba3b15..f7d4b79c18 100644
--- a/ui/qt/rtp_analysis_dialog.cpp
+++ b/ui/qt/rtp_analysis_dialog.cpp
@@ -465,14 +465,6 @@ RtpAnalysisDialog::~RtpAnalysisDialog()
delete rev_tempfile_;
}
-// XXX Should we do this in WiresharkDialog?
-void RtpAnalysisDialog::reject()
-{
- // We need to make sure our temporary files are closed.
- deleteLater();
- WiresharkDialog::reject();
-}
-
void RtpAnalysisDialog::updateWidgets()
{
bool enable_tab = false;