fixed memory leak

This commit is contained in:
argoneus 2018-07-31 18:08:02 +02:00
parent de6d325334
commit 83d30e6920

View File

@ -2022,8 +2022,10 @@ void Courtroom::on_call_mod_clicked()
box->setLabelText("Enter a reason:");
auto code = box->exec();
if (code != QDialog::Accepted)
if (code != QDialog::Accepted) {
delete box;
return;
}
auto text = box->textValue();
if (text.isEmpty())