[Scummvm-git-logs] scummvm master -> aeff820112aa67d42d87fefcc8332053b78a7d9c
grisenti
noreply at scummvm.org
Tue Dec 19 07:58:09 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:
aeff820112 HPL1: Fix incorrect delete
Commit: aeff820112aa67d42d87fefcc8332053b78a7d9c
https://github.com/scummvm/scummvm/commit/aeff820112aa67d42d87fefcc8332053b78a7d9c
Author: grisenti (emanuele at grisenti.net)
Date: 2023-12-19T08:57:58+01:00
Commit Message:
HPL1: Fix incorrect delete
Changed paths:
engines/hpl1/engine/system/SerializeClass.cpp
diff --git a/engines/hpl1/engine/system/SerializeClass.cpp b/engines/hpl1/engine/system/SerializeClass.cpp
index 9d2995b07ca..ef9e60600cd 100644
--- a/engines/hpl1/engine/system/SerializeClass.cpp
+++ b/engines/hpl1/engine/system/SerializeClass.cpp
@@ -812,7 +812,7 @@ void cSerializeClass::LoadArray(TiXmlElement *apElement, iSerializable *apData,
if (*pValuePtr == NULL) {
*pValuePtr = pSavedClass->mpCreateFunc();
} else {
- hplDelete(pValuePtr);
+ hplDelete(*pValuePtr);
*pValuePtr = pSavedClass->mpCreateFunc();
}
More information about the Scummvm-git-logs
mailing list