Skip to content

Commit a008480

Browse files
committed
[macOS/Windows] Fix application indicator destruction.
1 parent f5dbbf7 commit a008480

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

platform/macos/display_server_macos.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4905,7 +4905,7 @@
49054905
}
49064906

49074907
// Destroy all status indicators.
4908-
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E;) {
4908+
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E; ++E) {
49094909
[[NSStatusBar systemStatusBar] removeStatusItem:E->value.item];
49104910
}
49114911

platform/windows/display_server_windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5539,7 +5539,7 @@ DisplayServerWindows::~DisplayServerWindows() {
55395539
cursors_cache.clear();
55405540

55415541
// Destroy all status indicators.
5542-
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E;) {
5542+
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E; ++E) {
55435543
NOTIFYICONDATAW ndat;
55445544
ZeroMemory(&ndat, sizeof(NOTIFYICONDATAW));
55455545
ndat.cbSize = sizeof(NOTIFYICONDATAW);

0 commit comments

Comments
 (0)