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>
This commit is contained in:
Stig Bjørlykke 2015-09-05 20:30:17 +02:00
parent 90062a32b7
commit 4f5937a18b
1 changed files with 2 additions and 1 deletions

View File

@ -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