mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Fix more leaks
This commit is contained in:
parent
11bf1f13d0
commit
0d4a8403fc
@ -230,10 +230,10 @@
|
||||
terminated = _terminated;
|
||||
os_unfair_lock_unlock(&_lock);
|
||||
|
||||
if (terminated)
|
||||
if (terminated) {
|
||||
[_subscriber putCompletion];
|
||||
else if (nextSignal != nil)
|
||||
{
|
||||
_subscriber = nil;
|
||||
} else if (nextSignal != nil) {
|
||||
__weak MTSignalQueueState *weakSelf = self;
|
||||
id<MTDisposable> disposable = [nextSignal startWithNext:^(id next)
|
||||
{
|
||||
@ -282,6 +282,7 @@
|
||||
{
|
||||
[_currentDisposable dispose];
|
||||
[_disposable dispose];
|
||||
_subscriber = nil;
|
||||
}
|
||||
|
||||
@end
|
||||
|
Loading…
x
Reference in New Issue
Block a user