aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2015-09-05 20:30:17 +0200
committerStig Bjørlykke <stig@bjorlykke.org>2015-09-05 18:32:06 +0000
commit4f5937a18bf97cdd380a3812cde81efb0025c116 (patch)
tree7b4e13e158c60c029eaa29629dfe9322c516e2c1
parent90062a32b747223e14adfb3d563ca37082887038 (diff)
Qt: Fixed a QString memory leak
Change-Id: I93f439b7eb8d915f23ee456205d202d599f8cd99 Reviewed-on: https://code.wireshark.org/review/10394 Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
-rw-r--r--ui/qt/main_window_slots.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/main_window_slots.cpp b/ui/qt/main_window_slots.cpp
index 0d0ac3e4c9..ef2840e483 100644
--- a/ui/qt/main_window_slots.cpp
+++ b/ui/qt/main_window_slots.cpp
@@ -3252,7 +3252,8 @@ void MainWindow::on_actionCaptureStart_triggered()
}
/* XXX - will closing this remove a temporary file? */
- if (testCaptureFileClose(FALSE, *new QString(" before starting a new capture"))) {
+ QString before_what(tr(" before starting a new capture"));
+ if (testCaptureFileClose(FALSE, before_what)) {
startCapture();
} else {
// simply clicking the button sets it to 'checked' even though we've