In a few locations handles were being added but not removed.
Signed-off-by: Michael Varga <Michael.Varga@amd.com>
FREE(buf->data);
FREE(buf);
+ handle_table_remove(VL_VA_DRIVER(ctx)->htab, buf_id);
return VA_STATUS_SUCCESS;
}
}
context->decoder->destroy(context->decoder);
FREE(context);
+ handle_table_remove(drv->htab, context_id);
return VA_STATUS_SUCCESS;
}
if (!vaimage)
return VA_STATUS_ERROR_INVALID_IMAGE;
+ handle_table_remove(VL_VA_DRIVER(ctx)->htab, image);
return vlVaDestroyBuffer(ctx, vaimage->buf);
}