[Scummvm-git-logs] scummvm master -> bd761c87056a08cd60fea671d1b3d1214c6bdfe9
lephilousophe
noreply at scummvm.org
Sun Sep 18 18:56:53 UTC 2022
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:
bd761c8705 COMMON: Fix memory leak when deserializing U32String
Commit: bd761c87056a08cd60fea671d1b3d1214c6bdfe9
https://github.com/scummvm/scummvm/commit/bd761c87056a08cd60fea671d1b3d1214c6bdfe9
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-09-18T20:55:16+02:00
Commit Message:
COMMON: Fix memory leak when deserializing U32String
Changed paths:
common/serializer.h
diff --git a/common/serializer.h b/common/serializer.h
index 47cbdabcb15..4458963c9fa 100644
--- a/common/serializer.h
+++ b/common/serializer.h
@@ -280,6 +280,7 @@ public:
for (uint i = 0; i < len; i++)
syncAsUint32LE(sl[i]);
str = U32String(sl, len);
+ delete[] sl;
} else {
for (uint i = 0; i < len; i++)
_saveStream->writeUint32LE(str[i]);
More information about the Scummvm-git-logs
mailing list