applemedia: coremediabuffer: fix leaking of apple media structs

remember to release the apple's api buffers to avoid huge leaking
This commit is contained in:
Thiago Santos 2013-06-18 13:17:52 +02:00 committed by Andoni Morales Alastruey
parent 22be93cd04
commit eecc951070

View file

@ -25,6 +25,10 @@ gst_core_media_meta_free (GstCoreMediaMeta * meta, GstBuffer * buf)
if (meta->image_buf != NULL) { if (meta->image_buf != NULL) {
CVPixelBufferUnlockBaseAddress (meta->image_buf, CVPixelBufferUnlockBaseAddress (meta->image_buf,
kCVPixelBufferLock_ReadOnly); kCVPixelBufferLock_ReadOnly);
CVBufferRelease(meta->image_buf);
}
if (meta->block_buf != NULL) {
CFRelease (meta->block_buf);
} }
CVBufferRelease ((CVBufferRef)meta->sample_buf); CVBufferRelease ((CVBufferRef)meta->sample_buf);
} }