diff options
Diffstat (limited to 'exynos4')
-rw-r--r-- | exynos4/hal/libgralloc_ump/alloc_device.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/exynos4/hal/libgralloc_ump/alloc_device.cpp b/exynos4/hal/libgralloc_ump/alloc_device.cpp index b0623a5..e566df6 100644 --- a/exynos4/hal/libgralloc_ump/alloc_device.cpp +++ b/exynos4/hal/libgralloc_ump/alloc_device.cpp @@ -671,7 +671,7 @@ static int alloc_device_free(alloc_device_t* dev, buffer_handle_t handle) } if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) { - if (hnd->ion_memory > 0) + if (hnd->ion_memory != NULL) munmap(hnd->ion_memory, hnd->size); ion_free(hnd->fd); } |