mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-03-15 19:20:34 +01:00
st/va: added some calls to handle_table_remove()
In a few locations handles were being added but not removed. Signed-off-by: Michael Varga <Michael.Varga@amd.com>
This commit is contained in:
parent
b69c7c5dac
commit
7b4f233c1f
3 changed files with 3 additions and 0 deletions
|
|
@ -131,6 +131,7 @@ vlVaDestroyBuffer(VADriverContextP ctx, VABufferID buf_id)
|
|||
|
||||
FREE(buf->data);
|
||||
FREE(buf);
|
||||
handle_table_remove(VL_VA_DRIVER(ctx)->htab, buf_id);
|
||||
|
||||
return VA_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -212,6 +212,7 @@ vlVaDestroyContext(VADriverContextP ctx, VAContextID context_id)
|
|||
}
|
||||
context->decoder->destroy(context->decoder);
|
||||
FREE(context);
|
||||
handle_table_remove(drv->htab, context_id);
|
||||
|
||||
return VA_STATUS_SUCCESS;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -171,6 +171,7 @@ vlVaDestroyImage(VADriverContextP ctx, VAImageID image)
|
|||
if (!vaimage)
|
||||
return VA_STATUS_ERROR_INVALID_IMAGE;
|
||||
|
||||
handle_table_remove(VL_VA_DRIVER(ctx)->htab, image);
|
||||
return vlVaDestroyBuffer(ctx, vaimage->buf);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue