[Scummvm-git-logs] scummvm master -> 1d715c7bbb0214ffa902ded56cfe9a48aa6325e7

lephilousophe noreply at scummvm.org
Sat Oct 1 13:43:49 UTC 2022


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:
1d715c7bbb GUI: Fix memory leak when loading DEMO icon


Commit: 1d715c7bbb0214ffa902ded56cfe9a48aa6325e7
    https://github.com/scummvm/scummvm/commit/1d715c7bbb0214ffa902ded56cfe9a48aa6325e7
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-10-01T15:38:44+02:00

Commit Message:
GUI: Fix memory leak when loading DEMO icon

Changed paths:
    gui/widgets/grid.cpp


diff --git a/gui/widgets/grid.cpp b/gui/widgets/grid.cpp
index b576d4bad94..f2c01641a76 100644
--- a/gui/widgets/grid.cpp
+++ b/gui/widgets/grid.cpp
@@ -933,6 +933,7 @@ void GridWidget::reflowLayout() {
 	_extraIconHeight = _extraIconWidth / 4;
 
 	if ((oldThumbnailHeight != _thumbnailHeight) || (oldThumbnailWidth != _thumbnailWidth)) {
+		unloadSurfaces(_extraIcons);
 		unloadSurfaces(_platformIcons);
 		unloadSurfaces(_languageIcons);
 		unloadSurfaces(_loadedSurfaces);




More information about the Scummvm-git-logs mailing list