anv: don't leak memory if anv_init_wsi() fails
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 24 Nov 2016 20:30:43 +0000 (20:30 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Nov 2016 19:47:34 +0000 (19:47 +0000)
commita1cf494f7740c2afb851ffc3248e2cfa54d74ead
tree9d2bb11457fd3ed689c3169d398fb8bcb4f851cb
parent3af81715470f8d656fe8b8e35475ed2b5fc766da
anv: don't leak memory if anv_init_wsi() fails

brw_compiler_create() rzalloc-ates memory which we forgot to free.

Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_device.c