mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-26 18:41:01 +00:00
Fix critical memory leak on macOS.
This commit is contained in:
parent
b1554782fb
commit
370ad0aa44
@ -303,6 +303,8 @@ void Manager::Private::clearingThreadLoop() {
|
||||
_clearingTasks.clear();
|
||||
}
|
||||
|
||||
@autoreleasepool {
|
||||
|
||||
auto clearBySpecial = [&](NSDictionary *notificationUserInfo) {
|
||||
NSNumber *sessionObject = [notificationUserInfo objectForKey:@"session"];
|
||||
const auto notificationSessionId = sessionObject ? [sessionObject unsignedLongLongValue] : 0;
|
||||
@ -334,6 +336,8 @@ void Manager::Private::clearingThreadLoop() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user