[macOS/Windows] Fix application indicator destruction.

This commit is contained in:
bruvzg 2024-02-27 22:19:47 +02:00
parent f5dbbf7fd0
commit a0084803b4
No known key found for this signature in database
GPG Key ID: 7960FCF39844EC38
2 changed files with 2 additions and 2 deletions

View File

@ -4905,7 +4905,7 @@ DisplayServerMacOS::~DisplayServerMacOS() {
}
// Destroy all status indicators.
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E;) {
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E; ++E) {
[[NSStatusBar systemStatusBar] removeStatusItem:E->value.item];
}

View File

@ -5539,7 +5539,7 @@ DisplayServerWindows::~DisplayServerWindows() {
cursors_cache.clear();
// Destroy all status indicators.
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E;) {
for (HashMap<IndicatorID, IndicatorData>::Iterator E = indicators.begin(); E; ++E) {
NOTIFYICONDATAW ndat;
ZeroMemory(&ndat, sizeof(NOTIFYICONDATAW));
ndat.cbSize = sizeof(NOTIFYICONDATAW);