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:
parent
90062a32b7
commit
4f5937a18b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue