[Scummvm-git-logs] scummvm master -> 9c206acf064724599cf3cd52f8cd61b15f4537d0

eriktorbjorn noreply at scummvm.org
Sun Nov 14 17:49:52 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:
9c206acf06 GUI: Fix memory leak


Commit: 9c206acf064724599cf3cd52f8cd61b15f4537d0
    https://github.com/scummvm/scummvm/commit/9c206acf064724599cf3cd52f8cd61b15f4537d0
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-11-14T18:49:41+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 1e1ed1529e..f5265a29d8 100644
--- a/gui/gui-manager.cpp
+++ b/gui/gui-manager.cpp
@@ -132,6 +132,8 @@ void GuiManager::initIconsSet() {
 				_iconsSet.add((*ic)->getName(), dat);
 			}
 		}
+
+		delete iconDir;
 	}
 
 	const char fname[] = "gui-icons.dat";




More information about the Scummvm-git-logs mailing list