mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-17 16:50:34 +01:00
frontends/va: Fix leak when destroying VAEncCodedBufferType
Fixes: be4287c3aa ("pipe: Extend get_feedback with additional metadata")
Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29217>
This commit is contained in:
parent
19a875f7dc
commit
cc03f2ea5a
1 changed files with 1 additions and 1 deletions
|
|
@ -316,7 +316,7 @@ vlVaDestroyBuffer(VADriverContextP ctx, VABufferID buf_id)
|
|||
|
||||
if (buf->type == VAEncCodedBufferType) {
|
||||
VACodedBufferSegment* node = buf->data;
|
||||
while(!node) {
|
||||
while (node) {
|
||||
VACodedBufferSegment* next = (VACodedBufferSegment*) node->next;
|
||||
FREE(node);
|
||||
node = next;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue