anv: fix memory leak on device destroy
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 18 Oct 2019 12:28:30 +0000 (15:28 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Sun, 20 Oct 2019 08:02:22 +0000 (08:02 +0000)
commitb30e01aef5692be890f3f6ab944129b84d998254
treef4c0927c596d8a0043051b23070ed68a837bd28f
parentf834656a41698d3a72be7be67ea2f998dd12f75f
anv: fix memory leak on device destroy

v2: handle vma destruction if vkCreateDevice fails (Jordan)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Gitlab: https://gitlab.freedesktop.org/mesa/mesa/issues/1959
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/intel/vulkan/anv_device.c