Merge pull request #1744 from vector-im/share_extension_crash

Share Extension: Fix crash on a weak self
This commit is contained in:
manuroe 2018-01-23 05:55:23 +01:00 committed by GitHub
commit bb86584957
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -219,6 +219,7 @@ typedef NS_ENUM(NSInteger, ImageCompressionMode)
{
if (weakSelf)
{
typeof(self) self = weakSelf;
itemProvider.isLoaded = YES;
[self.pendingImages addObject:imageData];