[Scummvm-git-logs] scummvm master -> 4f626159a1d3779ab1b76373b7206ad05c6fca4a

lephilousophe noreply at scummvm.org
Thu Jan 12 07:45:08 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:
4f626159a1 SDL: Delete mouse scaler to avoid memory leak


Commit: 4f626159a1d3779ab1b76373b7206ad05c6fca4a
    https://github.com/scummvm/scummvm/commit/4f626159a1d3779ab1b76373b7206ad05c6fca4a
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-01-12T08:44:38+01:00

Commit Message:
SDL: Delete mouse scaler to avoid memory leak

Changed paths:
    backends/graphics/surfacesdl/surfacesdl-graphics.cpp


diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index ad7b6c41d65..b8dd4ea61f8 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -189,6 +189,7 @@ SurfaceSdlGraphicsManager::SurfaceSdlGraphicsManager(SdlEventSource *sdlEventSou
 SurfaceSdlGraphicsManager::~SurfaceSdlGraphicsManager() {
 	unloadGFXMode();
 	delete _scaler;
+	delete _mouseScaler;
 	if (_mouseOrigSurface) {
 		SDL_FreeSurface(_mouseOrigSurface);
 		if (_mouseOrigSurface == _mouseSurface) {




More information about the Scummvm-git-logs mailing list