Fix build errors

This commit is contained in:
Dominggoes Isakh 2018-08-21 23:38:45 +02:00 committed by Shilin Victor
parent db01d7418e
commit 48d3ff42e8
1 changed files with 1 additions and 1 deletions

View File

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