[Scummvm-git-logs] scummvm master -> 3374811903e4840c165a85008329a3193950a731
eriktorbjorn
eriktorbjorn at telia.com
Sun Nov 14 07:40:23 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:
3374811903 GRAPHICS: Fix small SVG memory leaks
Commit: 3374811903e4840c165a85008329a3193950a731
https://github.com/scummvm/scummvm/commit/3374811903e4840c165a85008329a3193950a731
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-11-14T08:40:06+01:00
Commit Message:
GRAPHICS: Fix small SVG memory leaks
Changed paths:
graphics/svg.cpp
diff --git a/graphics/svg.cpp b/graphics/svg.cpp
index 32363117a4..0762202cda 100644
--- a/graphics/svg.cpp
+++ b/graphics/svg.cpp
@@ -44,6 +44,7 @@ SVGBitmap::SVGBitmap(Common::SeekableReadStream *in) {
data[size] = '\0';
_svg = nsvgParse(data, "px", 96);
+ free(data);
if (_svg == NULL)
error("Cannot parse SVG image");
@@ -67,6 +68,7 @@ SVGBitmap::~SVGBitmap() {
nsvgDelete(_svg);
delete _render;
+ delete _pixelformat;
}
void SVGBitmap::render(Graphics::ManagedSurface &target, int dw, int dh) {
More information about the Scummvm-git-logs
mailing list