vaapiupload: use g_object_unref() for GstVaapiImage.

This commit is contained in:
Gwenole Beauchesne 2012-02-05 18:28:51 +01:00
parent f64bafea59
commit 843f528f95

View file

@ -695,7 +695,7 @@ gst_vaapiupload_buffer_alloc(
image = gst_vaapi_surface_derive_image(surface);
if (image && gst_vaapi_image_get_data_size(image) == size) {
gst_vaapi_video_buffer_set_image(vbuffer, image);
gst_object_unref(image); /* video buffer owns an extra reference */
g_object_unref(image); /* video buffer owns an extra reference */
break;
}