mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 15:43:55 +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();
|
_clearingTasks.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@autoreleasepool {
|
||||||
|
|
||||||
auto clearBySpecial = [&](NSDictionary *notificationUserInfo) {
|
auto clearBySpecial = [&](NSDictionary *notificationUserInfo) {
|
||||||
NSNumber *sessionObject = [notificationUserInfo objectForKey:@"session"];
|
NSNumber *sessionObject = [notificationUserInfo objectForKey:@"session"];
|
||||||
const auto notificationSessionId = sessionObject ? [sessionObject unsignedLongLongValue] : 0;
|
const auto notificationSessionId = sessionObject ? [sessionObject unsignedLongLongValue] : 0;
|
||||||
|
@ -334,6 +336,8 @@ void Manager::Private::clearingThreadLoop() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue