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:
parent
22be93cd04
commit
eecc951070
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user