mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
vaapiconvert: fix memory leak (VA surface image).
This commit is contained in:
parent
8589e8279c
commit
0a07620f37
1 changed files with 1 additions and 0 deletions
|
@ -595,6 +595,7 @@ gst_vaapiconvert_buffer_alloc(
|
|||
image = gst_vaapi_surface_derive_image(surface);
|
||||
if (image) {
|
||||
gst_vaapi_video_buffer_set_image(vbuffer, image);
|
||||
gst_object_unref(image); /* video buffer owns an extra reference */
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue