mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-01 07:46:11 +00:00
Revert "GUI: Fix memory leak"
I suspect the file object is used later, so I can't delete it here. This reverts commit c7f4d96a9d28ae24cbfa343b95b3a7babad34421.
This commit is contained in:
parent
5a6bd5ac54
commit
1402a78a01
@ -153,10 +153,9 @@ void GuiManager::initIconsSet() {
|
||||
if (file->isOpen())
|
||||
dat = Common::makeZipArchive(file);
|
||||
|
||||
delete file;
|
||||
|
||||
if (!dat) {
|
||||
warning("GUI: Could not find '%s'", fname);
|
||||
delete file;
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user