Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 04e976a

Browse files
committed
[[ Bug 21986 ]] Fix benign leak of backdrop window on macOS
This patch fixes the failure to release the backdrop window on engine shutdown on macOS. The leak is benign as it cannot affect user code, however it does clutter up memory leak logs.
1 parent b5e0e6b commit 04e976a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

docs/notes/bugfix-21986.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix benign leak of backdrop window on engine shutdown on macOS

engine/src/desktop-dc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,8 @@ Boolean MCScreenDC::open()
135135
Boolean MCScreenDC::close(Boolean force)
136136
{
137137
MCPlatformReleaseMenu(icon_menu);
138+
139+
MCPlatformReleaseWindow(backdrop_window);
138140

139141
// COCOA-TODO: Is this still needed?
140142
if (ncolors != 0)

0 commit comments

Comments
 (0)