[Scummvm-git-logs] scummvm master -> ba8dbe05c367a943715c0f20895be1549d1c85bd
eriktorbjorn
noreply at scummvm.org
Tue May 19 20:01:23 UTC 2026
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
ba8dbe05c3 ZVISION: Fix two memory leaks
Commit: ba8dbe05c367a943715c0f20895be1549d1c85bd
https://github.com/scummvm/scummvm/commit/ba8dbe05c367a943715c0f20895be1549d1c85bd
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2026-05-19T22:00:55+02:00
Commit Message:
ZVISION: Fix two memory leaks
Changed paths:
engines/zvision/scripting/controls/slot_control.cpp
engines/zvision/zvision.cpp
diff --git a/engines/zvision/scripting/controls/slot_control.cpp b/engines/zvision/scripting/controls/slot_control.cpp
index 7affe167034..8d23f653f42 100644
--- a/engines/zvision/scripting/controls/slot_control.cpp
+++ b/engines/zvision/scripting/controls/slot_control.cpp
@@ -194,6 +194,7 @@ bool SlotControl::process(uint32 deltaTimeInMillis) {
_engine->getRenderManager()->blitSurfaceToBkg(*srf, drawx, drawy, 0);
+ srf->free();
delete srf;
_renderedItem = curItem;
diff --git a/engines/zvision/zvision.cpp b/engines/zvision/zvision.cpp
index 95f864daef2..aa8ea496b78 100644
--- a/engines/zvision/zvision.cpp
+++ b/engines/zvision/zvision.cpp
@@ -128,6 +128,7 @@ ZVision::~ZVision() {
delete _scriptManager;
delete _renderManager; // should be deleted after the script manager
delete _subtitleManager;
+ delete _textRenderer;
delete _rnd;
delete _midiManager;
delete _volumeManager;
More information about the Scummvm-git-logs
mailing list