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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user