loader: GH370 - re-enable allocator usage
authorMark Young <marky@lunarg.com>
Fri, 3 Jun 2016 21:11:02 +0000 (15:11 -0600)
committerMark Young <marky@lunarg.com>
Wed, 29 Jun 2016 22:48:31 +0000 (16:48 -0600)
commitaa32dbbf147d86257a0c9e091258e0ea2be5a013
tree7b79410079081d470356cdb7cf9cf5500426aeb9
parent3a5dd70c24f3f8f674d5b1fbd8f0b63a96e04796
loader: GH370 - re-enable allocator usage

Re-enable the allocator usage in the loader.  Also, fix several
memory leaks.  The leaks were especially noticeable during the Vulkan
conformance object_management.alloc_callback_fail.instance and
object_management.alloc_callback_fail.device tests because the
tests were designed to intentionally fail the Alloc calls.

This change now fully passes the Vulkan CTS
object_management.alloc_callback_fail tests when the loader
uses application-provided Allocators.

Change-Id: I03f2a09bc33259442e02c917a34d78f8937808d8
loader/cJSON.c
loader/cJSON.h
loader/debug_report.c
loader/dirent_on_windows.c
loader/loader.c
loader/loader.h
loader/trampoline.c
loader/vk_loader_platform.h
loader/wsi.c