[Scummvm-git-logs] scummvm master -> 38f8a08ce474670eee61eb7f89d20001eaa3c967
bluegr
noreply at scummvm.org
Sun Oct 26 00:16:27 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
38f8a08ce4 SDL: Fix leaked surface in `hotswapGFXMode`
Commit: 38f8a08ce474670eee61eb7f89d20001eaa3c967
https://github.com/scummvm/scummvm/commit/38f8a08ce474670eee61eb7f89d20001eaa3c967
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2025-10-26T03:16:24+03:00
Commit Message:
SDL: Fix leaked surface in `hotswapGFXMode`
Changed paths:
backends/graphics/surfacesdl/surfacesdl-graphics.cpp
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index f240189032b..c46ca6e5285 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -1157,7 +1157,7 @@ bool SurfaceSdlGraphicsManager::hotswapGFXMode() {
// Release the HW screen surface
if (_hwScreen) {
- destroySurface(_osdIconSurface);
+ destroySurface(_hwScreen);
_hwScreen = nullptr;
}
if (_tmpscreen) {
More information about the Scummvm-git-logs
mailing list