mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 15:20:17 +01:00
st/va: Fix leak in VAAPI subpictures
sampler view allocated in vaAssociateSubpicture is not cleared in vaiDeassociateSubpicture. Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
9e9f7840bd
commit
b1a359b7d8
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue