[Scummvm-git-logs] scummvm master -> 82142000c6ccb2f6cf6322c8e83da3fd3db18542

rvanlaar noreply at scummvm.org
Tue Sep 20 21:19:18 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:
82142000c6 GRAPHICS: MACGUI: leave _desktopBmp as a nullptr


Commit: 82142000c6ccb2f6cf6322c8e83da3fd3db18542
    https://github.com/scummvm/scummvm/commit/82142000c6ccb2f6cf6322c8e83da3fd3db18542
Author: Roland van Laar (roland at rolandvanlaar.nl)
Date: 2022-09-20T23:19:08+02:00

Commit Message:
GRAPHICS: MACGUI: leave _desktopBmp as a nullptr

Make sure _desktopBmp can be checked to be a nullptr.

Changed paths:
    graphics/macgui/macwindowmanager.cpp


diff --git a/graphics/macgui/macwindowmanager.cpp b/graphics/macgui/macwindowmanager.cpp
index 32afc142b21..1742add7c47 100644
--- a/graphics/macgui/macwindowmanager.cpp
+++ b/graphics/macgui/macwindowmanager.cpp
@@ -232,6 +232,7 @@ void MacWindowManager::cleanupDesktopBmp() {
 	if (_desktopBmp) {
 		_desktopBmp->free();
 		delete _desktopBmp;
+		_desktopBmp = nullptr;
 	}
 }
 




More information about the Scummvm-git-logs mailing list