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:
Michael Varga 2014-10-27 10:43:20 -05:00 committed by Leo Liu
parent b69c7c5dac
commit 7b4f233c1f
3 changed files with 3 additions and 0 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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);
}