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:
Torbjörn Andersson 2021-11-15 09:59:35 +01:00
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;
}