[Scummvm-git-logs] scummvm master -> a965e01857ed9a614aeb54de24e03fd0dcada311

sev- noreply at scummvm.org
Sun Nov 14 22:00:23 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:
a965e01857 GUI: Do not leak memory on gui-icons.dat opening failure


Commit: a965e01857ed9a614aeb54de24e03fd0dcada311
    https://github.com/scummvm/scummvm/commit/a965e01857ed9a614aeb54de24e03fd0dcada311
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2021-11-14T23:00:13+01:00

Commit Message:
GUI: Do not leak memory on gui-icons.dat opening failure

Changed paths:
    gui/gui-manager.cpp


diff --git a/gui/gui-manager.cpp b/gui/gui-manager.cpp
index 04bea58b61..ca3810841b 100644
--- a/gui/gui-manager.cpp
+++ b/gui/gui-manager.cpp
@@ -155,6 +155,7 @@ void GuiManager::initIconsSet() {
 
 	if (!dat) {
 		warning("GUI: Could not find '%s'", fname);
+		delete file;
 		return;
 	}
 




More information about the Scummvm-git-logs mailing list