[Scummvm-git-logs] scummvm master -> d304fd25d7ed71293f88d481a88d376b5da0b726
bluegr
noreply at scummvm.org
Fri Mar 6 06:47:07 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:
d304fd25d7 GUI: Fix leak of cached RichText surface
Commit: d304fd25d7ed71293f88d481a88d376b5da0b726
https://github.com/scummvm/scummvm/commit/d304fd25d7ed71293f88d481a88d376b5da0b726
Author: tunnelsociety (tunnelsociety at mm.st)
Date: 2026-03-06T08:47:03+02:00
Commit Message:
GUI: Fix leak of cached RichText surface
Changed paths:
gui/widgets/richtext.cpp
diff --git a/gui/widgets/richtext.cpp b/gui/widgets/richtext.cpp
index cf0e5717410..51dd844b428 100644
--- a/gui/widgets/richtext.cpp
+++ b/gui/widgets/richtext.cpp
@@ -88,8 +88,11 @@ RichTextWidget::~RichTextWidget() {
if (_surface)
_surface->free();
-
delete _surface;
+
+ if (_cachedTextSurface)
+ _cachedTextSurface->free();
+ delete _cachedTextSurface;
}
void RichTextWidget::handleMouseWheel(int x, int y, int direction) {
More information about the Scummvm-git-logs
mailing list