[Scummvm-git-logs] scummvm master -> dc2883e4cfa7174b4aa67e2acdb83deb09c744e9

sev- noreply at scummvm.org
Tue Jul 19 18:43:38 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:
dc2883e4cf GRAPHICS: MACGUI: Do not double free desktop image


Commit: dc2883e4cfa7174b4aa67e2acdb83deb09c744e9
    https://github.com/scummvm/scummvm/commit/dc2883e4cfa7174b4aa67e2acdb83deb09c744e9
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2022-07-19T20:43:12+02:00

Commit Message:
GRAPHICS: MACGUI: Do not double free desktop image

Changed paths:
    graphics/macgui/macwindowmanager.cpp


diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index 96046daa833..92b04203f39 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -255,6 +255,7 @@ void MacWindowManager::setDesktopMode(uint32 mode) {
 			loadDesktop();
 	} else if (_desktopBmp) {
 		_desktopBmp->free();
+		_desktopBmp = nullptr;
 	}
 
 	_mode = mode;




More information about the Scummvm-git-logs mailing list