diff --git a/src/gui/macOS/fileproviderdomainmanager_mac.mm b/src/gui/macOS/fileproviderdomainmanager_mac.mm index 415f50d3ad279..83546058b8fef 100644 --- a/src/gui/macOS/fileproviderdomainmanager_mac.mm +++ b/src/gui/macOS/fileproviderdomainmanager_mac.mm @@ -217,6 +217,8 @@ void removeFileProviderDomain(const AccountState * const accountState) NSFileProviderDomain * const domain = _registeredDomains.take(domainId); [domain release]; + + _registeredDomains.remove(domainId); }]; } }