mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
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
1 changed files with 4 additions and 0 deletions
|
@ -25,6 +25,10 @@ gst_core_media_meta_free (GstCoreMediaMeta * meta, GstBuffer * buf)
|
|||
if (meta->image_buf != NULL) {
|
||||
CVPixelBufferUnlockBaseAddress (meta->image_buf,
|
||||
kCVPixelBufferLock_ReadOnly);
|
||||
CVBufferRelease(meta->image_buf);
|
||||
}
|
||||
if (meta->block_buf != NULL) {
|
||||
CFRelease (meta->block_buf);
|
||||
}
|
||||
CVBufferRelease ((CVBufferRef)meta->sample_buf);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue