PHLivePhoto.request using custom targetSize parameter cause memory leaks

My app uses PHLivePhoto.request to generate live photos, but memory leaks if I use a custom targetSize.

PHLivePhoto.request(withResourceFileURLs: [imageUrl, videoUrl], placeholderImage: nil, targetSize: targetSize, contentMode: .aspectFit) {[weak self] (livePhoto, info) in

Change targetSize to CGSizeZero, problem resolved.

PHLivePhoto.request(withResourceFileURLs: [imageUrl, videoUrl], placeholderImage: nil, targetSize: CGSizeZero, contentMode: .aspectFit) {[weak self] (livePhoto, info) in

Thanks for highlighting this issue! I can confirm that I'm able to reproduce a leak when calling the api as you've detailed. If you'd like to receive updates on the issue when it's fixed please file a feedback and reply with the number so I may route it correctly.

Same problem here.

PHLivePhoto.request using custom targetSize parameter cause memory leaks
 
 
Q