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

eriktorbjorn noreply at scummvm.org
Mon Nov 15 08:32:47 UTC 2021


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:
8fe33fdb55 GUI: Fix memory leak


Commit: 8fe33fdb5578882538abbb3cb315f7f0a8fafdcc
    https://github.com/scummvm/scummvm/commit/8fe33fdb5578882538abbb3cb315f7f0a8fafdcc
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-11-15T09:32:36+01:00

Commit Message:
GUI: Fix memory leak

Changed paths:
    gui/ThemeEngine.cpp


diff --git a/gui/ThemeEngine.cpp b/gui/ThemeEngine.cpp
index f3ca81e9ac..8fec778409 100644
--- a/gui/ThemeEngine.cpp
+++ b/gui/ThemeEngine.cpp
@@ -663,6 +663,7 @@ bool ThemeEngine::addBitmap(const Common::String &filename, const Common::String
 			Common::SeekableReadStream *stream = (*i)->createReadStream();
 			if (stream) {
 				image = new Graphics::SVGBitmap(stream);
+				delete stream;
 				break;
 			}
 		}




More information about the Scummvm-git-logs mailing list