[macOS/Windows] Fix application indicator destruction.
This commit is contained in:
parent
f5dbbf7fd0
commit
a0084803b4
|
@ -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];
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue