vaapiconvert: fix memory leak (VA surface image).

This commit is contained in:
Gwenole Beauchesne 2011-09-06 17:47:10 +02:00
parent 8589e8279c
commit 0a07620f37

View file

@ -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;
}