mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Fix critical memory leak on macOS.
This commit is contained in:
parent
b1554782fb
commit
370ad0aa44
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue