[Scummvm-git-logs] scummvm master -> 12fea682dea2adc7690f790796d69a2cebc95824

rvanlaar noreply at scummvm.org
Wed Sep 28 21:28:12 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:
12fea682de TESTBED: fix leak: clear up surface inside conv


Commit: 12fea682dea2adc7690f790796d69a2cebc95824
    https://github.com/scummvm/scummvm/commit/12fea682dea2adc7690f790796d69a2cebc95824
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-09-28T23:27:02+02:00

Commit Message:
TESTBED: fix leak: clear up surface inside conv

frame->convertTo creates a new surface. Free it after use and delete the
pointer to it.t

Changed paths:
    engines/testbed/video.cpp


diff --git a/engines/testbed/video.cpp b/engines/testbed/video.cpp
index 2c27eaeab3e..0be61b48a46 100644
--- a/engines/testbed/video.cpp
+++ b/engines/testbed/video.cpp
@@ -69,6 +69,7 @@ void TestbedEngine::videoTest() {
 				}
 				g_system->copyRectToScreen(conv->getPixels(), conv->pitch, x, y, MIN<uint16>(conv->w, 640), MIN<uint16>(conv->h, 480));
 
+				conv->free();
 				delete conv;
 			}
 




More information about the Scummvm-git-logs mailing list