mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-10-05 17:16:50 +08:00
[android ion all]: fix allocator_ctx_ion no free when alloc close
git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@522 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -284,6 +284,7 @@ MPP_RET os_allocator_ion_close(void *ctx)
|
|||||||
|
|
||||||
p = (allocator_ctx_ion *)ctx;
|
p = (allocator_ctx_ion *)ctx;
|
||||||
ret = close(p->ion_device);
|
ret = close(p->ion_device);
|
||||||
|
mpp_free(p);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return (MPP_RET) - errno;
|
return (MPP_RET) - errno;
|
||||||
return MPP_OK;
|
return MPP_OK;
|
||||||
|
Reference in New Issue
Block a user