From 010f94b85d79e95dfc867e1a617eedf5650928d7 Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 12 Dec 2011 18:37:13 +0100 Subject: [PATCH] surface: fix VA image leak when an error occurred. --- gst-libs/gst/vaapi/gstvaapisurface.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst-libs/gst/vaapi/gstvaapisurface.c b/gst-libs/gst/vaapi/gstvaapisurface.c index f7e4b8c535..54bc432e08 100644 --- a/gst-libs/gst/vaapi/gstvaapisurface.c +++ b/gst-libs/gst/vaapi/gstvaapisurface.c @@ -853,6 +853,7 @@ gst_vaapi_surface_update_composition( if (!gst_vaapi_image_update_from_buffer (subtitle_image, buf, &sub_rect)) { GST_WARNING ("could not update VA image with subtitle data"); + g_object_unref (subtitle_image); return FALSE; }