[Scummvm-git-logs] scummvm master -> fb93706628a382d9e1c92e60544339db8e591e0b
sluicebox
noreply at scummvm.org
Wed Dec 27 08:16:11 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:
fb93706628 M4: Use delete instead of free. PVS-Studio V611
Commit: fb93706628a382d9e1c92e60544339db8e591e0b
https://github.com/scummvm/scummvm/commit/fb93706628a382d9e1c92e60544339db8e591e0b
Author: sluicebox (22204938+sluicebox at users.noreply.github.com)
Date: 2023-12-27T00:13:28-08:00
Commit Message:
M4: Use delete instead of free. PVS-Studio V611
Changed paths:
engines/m4/adv_r/conv_io.cpp
diff --git a/engines/m4/adv_r/conv_io.cpp b/engines/m4/adv_r/conv_io.cpp
index 4c563c1c3fa..1c1040bfc6d 100644
--- a/engines/m4/adv_r/conv_io.cpp
+++ b/engines/m4/adv_r/conv_io.cpp
@@ -795,7 +795,7 @@ Conv *conv_load(const char *filename, int x1, int y1, int32 myTrigger, bool want
if (!fp.read((MemHandle)&bufferHandle, cSize)) {
conv_set_handle(nullptr);
if (convers)
- mem_free(convers);
+ delete convers;
convers = nullptr;
goto done;
More information about the Scummvm-git-logs
mailing list