Commit dbb2e083 authored by Thomas Guillem's avatar Thomas Guillem

ci_filters: use autoreleasepool

This reduces heavily the memory footprint.
parent 261e710b
......@@ -313,6 +313,7 @@ Filter(filter_t *filter, picture_t *src)
}
CFRelease(cvpx);
@autoreleasepool {
CIImage *ci_img = [CIImage imageWithCVImageBuffer: cvpxpic_get_ref(src)];
if (!ci_img)
goto error;
......@@ -341,6 +342,7 @@ Filter(filter_t *filter, picture_t *src)
toIOSurface: CVPixelBufferGetIOSurface(cvpx)
bounds: [ci_img extent]
colorSpace: ctx->color_space];
}
CopyInfoAndRelease(dst, src);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment