videobuffer: fix memory leak for surface and image.
authorWind Yuan <feng.yuan@intel.com>
Tue, 30 Oct 2012 05:15:45 +0000 (13:15 +0800)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 19 Nov 2012 10:22:03 +0000 (11:22 +0100)
commit5fac9d4b5533c92240805e4845064c95e78b1873
tree40964ffe13beb56970864b8bec2d22231f5485a1
parenta9f8e17ec58d40f0918980455457f091ceff6931
videobuffer: fix memory leak for surface and image.

Fix reference leak of surface and image in GstVaapiVideoBuffer wrapper,
thus resulting on actual memory leak of GstVaapiImage when using them
for downloads/uploads from VA surfaces and more specifically surfaces
when the pipeline is shutdown. i.e. vaTerminate() was never called
because the resources were not unreferenced, and thus not deallocated
in the end.

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
NEWS
gst-libs/gst/vaapi/gstvaapivideobuffer.c