anv: fix unwind of vkCreateDevice fail
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 22 Oct 2019 12:34:12 +0000 (15:34 +0300)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 22 Oct 2019 20:44:26 +0000 (20:44 +0000)
commit0dfa643feb6e80f654fdc4efc71c22e751a53de3
treeceebddeafe34ec052660cdd8a97eac4aa4c4801a
parent118a32e5baa739f25c0a1f02790314915a2d9f29
anv: fix unwind of vkCreateDevice fail

We're skipping the context destruction in some cases which is the
grand scheme of thing is not that important because closing device->fd
will destroy the associated context as well.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reported-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: <mesa-stable@lists.freedesktop.org>
Fixes: b30e01aef56 ("anv: fix memory leak on device destroy")
src/intel/vulkan/anv_device.c