CIImage memory not released
问题 I am trying to take a sequence of images, blend X images at the time and produce a new image. This is the code I have to accomplish this: static func blendImages(blendFrames: Int, blendMode: CIImage.BlendMode, imagePaths: [URL], completion: @escaping (_ progress: Double) -> Void) { var currentIndex = 0 while currentIndex + blendFrames < imagePaths.count { let currentSubset = Array(imagePaths[currentIndex..<(currentIndex + blendFrames)]) var currentSubsetIndex = 0 var firstImage: CIImage?