Cabbage
Cabbage copied to clipboard
CIImage Memory leak
@vitoziv I faced this problem in the project I'm working on. After I create CIImage, it prevents VideoComposition from releasing from the memory, causing the memory leak.
let url = Bundle.main.url(forResource: "overlay", withExtension: "jpg")!
let image = CIImage(contentsOf: url)!
let resource = ImageResource(image: image, duration: CMTime.init(seconds: 5, preferredTimescale: 600))
Any suggestions?
I find this code in your demo,
let assets = Array(repeating: asset, count: 6)
there are 6 same object, each address is same, may be caused by it.