[Scummvm-git-logs] scummvm master -> 8e215fad591f6156df5ca76948ba0a47e4c45fef

sev- sev at scummvm.org
Mon Mar 30 09:48:27 UTC 2020


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:
8e215fad59 GRAPHICS: Fix memory leak


Commit: 8e215fad591f6156df5ca76948ba0a47e4c45fef
    https://github.com/scummvm/scummvm/commit/8e215fad591f6156df5ca76948ba0a47e4c45fef
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2020-03-30T11:48:02+02:00

Commit Message:
GRAPHICS: Fix memory leak

Changed paths:
    graphics/surface.cpp


diff --git a/graphics/surface.cpp b/graphics/surface.cpp
index 26d40b8922..e2e3401cc2 100644
--- a/graphics/surface.cpp
+++ b/graphics/surface.cpp
@@ -544,8 +544,10 @@ FloodFill::~FloodFill() {
 
 	free(_visited);
 
-	if (_mask)
+	if (_mask) {
+		_mask->free();
 		delete _mask;
+	}
 }
 
 void FloodFill::addSeed(int x, int y) {




More information about the Scummvm-git-logs mailing list