GUI: Do not leak memory on gui-icons.dat opening failure
This commit is contained in:
parent
f64a6d2c77
commit
a965e01857
1 changed files with 1 additions and 0 deletions
|
@ -155,6 +155,7 @@ void GuiManager::initIconsSet() {
|
|||
|
||||
if (!dat) {
|
||||
warning("GUI: Could not find '%s'", fname);
|
||||
delete file;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue