vaapiconvert: fix memory leak (VA surface image).
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 6 Sep 2011 15:47:10 +0000 (17:47 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Tue, 6 Sep 2011 16:37:11 +0000 (18:37 +0200)
gst/vaapiconvert/gstvaapiconvert.c

index 0b9deab..bdbb6f9 100644 (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;
         }