[Scummvm-git-logs] scummvm master -> 3058bdb8be0c057dab73c15529214d59d9b4ece7
sev-
noreply at scummvm.org
Fri Jan 27 14:11:45 UTC 2023
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:
3058bdb8be DIRECTOR: Do not leak memory on failed EXEv4 load
Commit: 3058bdb8be0c057dab73c15529214d59d9b4ece7
https://github.com/scummvm/scummvm/commit/3058bdb8be0c057dab73c15529214d59d9b4ece7
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2023-01-27T15:11:20+01:00
Commit Message:
DIRECTOR: Do not leak memory on failed EXEv4 load
Changed paths:
engines/director/resource.cpp
diff --git a/engines/director/resource.cpp b/engines/director/resource.cpp
index 63651b581c9..3b20e9b2ebf 100644
--- a/engines/director/resource.cpp
+++ b/engines/director/resource.cpp
@@ -461,6 +461,8 @@ Archive *Window::loadEXERIFX(Common::SeekableReadStream *stream, uint32 offset)
warning("Window::loadEXERIFX(): Failed to load RIFX from EXE");
delete result;
result = nullptr;
+ delete stream;
+ stream = nullptr;
}
return result;
}
More information about the Scummvm-git-logs
mailing list