[Scummvm-git-logs] scummvm master -> 020a8e8012c85ad2656b9468df3df4c966d52c1a
eriktorbjorn
noreply at scummvm.org
Mon Jan 6 07:53:19 UTC 2025
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:
020a8e8012 SCUMM: MACGUI: Fix memory leak when loading Mac cursor
Commit: 020a8e8012c85ad2656b9468df3df4c966d52c1a
https://github.com/scummvm/scummvm/commit/020a8e8012c85ad2656b9468df3df4c966d52c1a
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2025-01-06T08:52:59+01:00
Commit Message:
SCUMM: MACGUI: Fix memory leak when loading Mac cursor
Changed paths:
engines/scumm/macgui/macgui_v5.cpp
diff --git a/engines/scumm/macgui/macgui_v5.cpp b/engines/scumm/macgui/macgui_v5.cpp
index d347a8f9857..a22021b44a2 100644
--- a/engines/scumm/macgui/macgui_v5.cpp
+++ b/engines/scumm/macgui/macgui_v5.cpp
@@ -144,6 +144,9 @@ void MacV5Gui::setupCursor(int &width, int &height, int &hotspotX, int &hotspotY
hotspotY = 3;
animate = 0;
}
+
+ delete curs;
+ resource.close();
}
bool MacV5Gui::handleMenu(int id, Common::String &name) {
More information about the Scummvm-git-logs
mailing list