summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va
diff options
context:
space:
mode:
authorChandu Babu N <[email protected]>2017-06-22 10:48:41 +0530
committerChristian König <[email protected]>2017-06-22 12:09:43 +0200
commitb1a359b7d8a0559412d253101e930a6a45d9af7a (patch)
tree72fa1491d05ccdcbd4bfa10c844c76c1120d023c /src/gallium/state_trackers/va
parent9e9f7840bd4f724421ab1d591923ea860b8f1a2a (diff)
st/va: Fix leak in VAAPI subpictures
sampler view allocated in vaAssociateSubpicture is not cleared in vaiDeassociateSubpicture. Reviewed-by: Christian König <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/va')
-rw-r--r--src/gallium/state_trackers/va/subpicture.c1
1 files changed, 1 insertions, 0 deletions
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;