[Scummvm-git-logs] scummvm master -> 9e0df0a8965d8100fb41efa9381b4aad26ac9ecb

somaen noreply at scummvm.org
Sun Mar 26 20:31:20 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:
9e0df0a896 DIRECTOR: Properly delete the ImageDecoder in loadBitmapData


Commit: 9e0df0a8965d8100fb41efa9381b4aad26ac9ecb
    https://github.com/scummvm/scummvm/commit/9e0df0a8965d8100fb41efa9381b4aad26ac9ecb
Author: Einar Johan Trøan Sømåen (somaen at scummvm.org)
Date: 2023-03-26T22:31:06+02:00

Commit Message:
DIRECTOR: Properly delete the ImageDecoder in loadBitmapData

Changed paths:
    engines/director/cast.cpp


diff --git a/engines/director/cast.cpp b/engines/director/cast.cpp
index 55abe885840..99f78ef371d 100644
--- a/engines/director/cast.cpp
+++ b/engines/director/cast.cpp
@@ -718,6 +718,7 @@ void Cast::loadBitmapData(int key, BitmapCastMember *bitmapCast) {
 
 					debugC(5, kDebugImages, "Cast::loadBitmapData(): Bitmap: id: %d, w: %d, h: %d, flags1: %x, flags2: %x bytes: %x, bpp: %d clut: %x", imgId, surf->w, surf->h, bitmapCast->_flags1, bitmapCast->_flags2, bitmapCast->_bytes, bitmapCast->_bitsPerPixel, bitmapCast->_clut);
 					delete pic;
+					delete decoder;
 					return;
 				} else {
 					delete decoder;




More information about the Scummvm-git-logs mailing list