mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix warnings and memory issues (#1003)
This commit is contained in:
committed by
GitHub
parent
75594affe2
commit
d28b17c87f
@@ -101,7 +101,7 @@ static void runLoopSourceCallback(void *info) {
|
||||
return;
|
||||
}
|
||||
// The scope below is entered while already locked. @autorelease is crucial here; see PR 2890.
|
||||
NSInteger count;
|
||||
__unused NSInteger count; // Prevent static analyzer warning if release build
|
||||
@autoreleasepool {
|
||||
#if ASRunLoopQueueLoggingEnabled
|
||||
NSLog(@"ASDeallocQueue Processing: %lu objects destroyed", weakSelf->_queue.size());
|
||||
@@ -281,7 +281,8 @@ typedef enum {
|
||||
|
||||
- (instancetype)init
|
||||
{
|
||||
if (self != [super init]) {
|
||||
self = [super init];
|
||||
if (self == nil) {
|
||||
return nil;
|
||||
}
|
||||
ASDisplayNodeAssert(self.class != [ASAbstractRunLoopQueue class], @"Should never create instances of abstract class ASAbstractRunLoopQueue.");
|
||||
|
||||
Reference in New Issue
Block a user