[Scummvm-git-logs] scummvm master -> 500922250fb520e317284a775914fd066b875b3d

lephilousophe noreply at scummvm.org
Tue Oct 14 17:34:29 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:
500922250f DIRECTOR: Free the memory before erasing the _matte pointer


Commit: 500922250fb520e317284a775914fd066b875b3d
    https://github.com/scummvm/scummvm/commit/500922250fb520e317284a775914fd066b875b3d
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2025-10-14T19:31:50+02:00

Commit Message:
DIRECTOR: Free the memory before erasing the _matte pointer

Changed paths:
    engines/director/sprite.cpp


diff --git a/engines/director/sprite.cpp b/engines/director/sprite.cpp
index 7b8bfb59adc..d2a20cdf575 100644
--- a/engines/director/sprite.cpp
+++ b/engines/director/sprite.cpp
@@ -109,6 +109,9 @@ Sprite& Sprite::operator=(const Sprite &sprite) {
 	_trails = sprite._trails;
 
 	_cast = sprite._cast;
+
+	if (_matte)
+		delete _matte;
 	_matte = nullptr;
 
 	_thickness = sprite._thickness;




More information about the Scummvm-git-logs mailing list