fixed memory leak
This commit is contained in:
parent
de6d325334
commit
83d30e6920
@ -2022,8 +2022,10 @@ void Courtroom::on_call_mod_clicked()
|
|||||||
box->setLabelText("Enter a reason:");
|
box->setLabelText("Enter a reason:");
|
||||||
auto code = box->exec();
|
auto code = box->exec();
|
||||||
|
|
||||||
if (code != QDialog::Accepted)
|
if (code != QDialog::Accepted) {
|
||||||
|
delete box;
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
auto text = box->textValue();
|
auto text = box->textValue();
|
||||||
if (text.isEmpty())
|
if (text.isEmpty())
|
||||||
|
Loading…
Reference in New Issue
Block a user