image: free our heap allocated object when destroying the image
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
This commit is contained in:
@@ -124,6 +124,8 @@ VAStatus sunxi_cedrus_DestroyImage(VADriverContextP ctx, VAImageID image)
|
||||
assert(obj_img);
|
||||
|
||||
sunxi_cedrus_DestroyBuffer(ctx, obj_img->buf);
|
||||
object_heap_free(&driver_data->image_heap, &obj_img->base);
|
||||
|
||||
return VA_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user