[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:
ChenSiyong
2016-01-05 03:02:46 +00:00
parent 46a3b365b3
commit be686dfd38

View File

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