Previously, BX_ALIGNED_FREE was going through bx::realloc which includes a null check. However, bx::alignedFree() directly calls into bx::free() which will crash when passed a null pointer. These extra checks prevent crashes introduced after the migration from BX_ALIGNED_FREE to bx::alignedFree.
Previously, BX_ALIGNED_FREE was going through bx::realloc which includes a null check. However, bx::alignedFree() directly calls into bx::free() which will crash when passed a null pointer. These extra checks prevent crashes introduced after the migration from BX_ALIGNED_FREE to bx::alignedFree.
Fixes https://github.com/jdryg/vg-renderer/issues/31.