[Scummvm-git-logs] scummvm master -> c7f4d96a9d28ae24cbfa343b95b3a7babad34421
eriktorbjorn
noreply at scummvm.org
Mon Nov 15 08:50:00 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
c7f4d96a9d GUI: Fix memory leak
Commit: c7f4d96a9d28ae24cbfa343b95b3a7babad34421
https://github.com/scummvm/scummvm/commit/c7f4d96a9d28ae24cbfa343b95b3a7babad34421
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-11-15T09:49:38+01:00
Commit Message:
GUI: Fix memory leak
Changed paths:
gui/gui-manager.cpp
diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp
index ca3810841b..e875311084 100644
--- a/gui/gui-manager.cpp
+++ b/gui/gui-manager.cpp
@@ -153,9 +153,10 @@ void GuiManager::initIconsSet() {
if (file->isOpen())
dat = Common::makeZipArchive(file);
+ delete file;
+
if (!dat) {
warning("GUI: Could not find '%s'", fname);
- delete file;
return;
}
More information about the Scummvm-git-logs
mailing list