mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Fix an issue that could cause the view / layer to be created early by -clearContents.
This commit is contained in:
@@ -1644,7 +1644,8 @@ void recursivelyEnsureDisplayForLayer(CALayer *layer)
|
||||
|
||||
- (void)clearContents
|
||||
{
|
||||
self.layer.contents = nil;
|
||||
// No-op if these haven't been created yet, as that guarantees they don't have contents that needs to be released.
|
||||
_layer.contents = nil;
|
||||
_placeholderLayer.contents = nil;
|
||||
_placeholderImage = nil;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user