From a29f1fdbb487a09e1c82d9dcef6b46277b4bc733 Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Mon, 16 Dec 2019 01:00:17 +0100 Subject: GRAPHICS: MACGUI: Clear preallocated screen in WM when override is requested --- graphics/macgui/macwindowmanager.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'graphics/macgui/macwindowmanager.h') diff --git a/graphics/macgui/macwindowmanager.h b/graphics/macgui/macwindowmanager.h index 2e3e3128c3..7e195f07dc 100644 --- a/graphics/macgui/macwindowmanager.h +++ b/graphics/macgui/macwindowmanager.h @@ -107,7 +107,7 @@ public: * Note that this method should be called as soon as the WM is created. * @param screen Surface on which the desktop will be drawn. */ - void setScreen(ManagedSurface *screen) { _screen = screen; } + void setScreen(ManagedSurface *screen) { _screen = screen; delete _screenCopy; _screenCopy = nullptr; } /** * Create a window with the given parameters. * Note that this method allocates the necessary memory for the window. -- cgit v1.2.3