From b1a359b7d8a0559412d253101e930a6a45d9af7a Mon Sep 17 00:00:00 2001 From: Chandu Babu N Date: Thu, 22 Jun 2017 10:48:41 +0530 Subject: st/va: Fix leak in VAAPI subpictures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit sampler view allocated in vaAssociateSubpicture is not cleared in vaiDeassociateSubpicture. Reviewed-by: Christian König --- src/gallium/state_trackers/va/subpicture.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gallium/state_trackers') diff --git a/src/gallium/state_trackers/va/subpicture.c b/src/gallium/state_trackers/va/subpicture.c index 15d52b941c3..981a99cec53 100644 --- a/src/gallium/state_trackers/va/subpicture.c +++ b/src/gallium/state_trackers/va/subpicture.c @@ -283,6 +283,7 @@ vlVaDeassociateSubpicture(VADriverContextP ctx, VASubpictureID subpicture, while (surf->subpics.size && util_dynarray_top(&surf->subpics, vlVaSubpicture *) == NULL) (void)util_dynarray_pop(&surf->subpics, vlVaSubpicture *); } + pipe_sampler_view_reference(&sub->sampler,NULL); mtx_unlock(&drv->mutex); return VA_STATUS_SUCCESS; -- cgit v1.2.3