Use autoreleasepool when rendering image editor output.

pull/1/head
Matthew Chen 6 years ago
parent 2b25d875bc
commit b24e8e4f81

@ -582,7 +582,11 @@ public class AttachmentApprovalViewController: UIPageViewController, UIPageViewC
}
var attachments: [SignalAttachment] {
return attachmentItems.map { self.processedAttachment(forAttachmentItem: $0) }
return attachmentItems.map { (attachmentItem) in
autoreleasepool {
return self.processedAttachment(forAttachmentItem: attachmentItem)
}
}
}
// For any attachments edited with the image editor, returns a

Loading…
Cancel
Save