vulkan: don't free uninitialised memory
authorEric Engestrom <eric.engestrom@intel.com>
Fri, 18 May 2018 16:12:53 +0000 (17:12 +0100)
committerEric Engestrom <eric.engestrom@intel.com>
Tue, 29 May 2018 16:44:13 +0000 (17:44 +0100)
commite4fe2fd3bb26d52e64d98207692a4469f04fe1d5
tree9cdc94d0f10d6660d1a976918ac1521ff7d906b7
parent51a17e7feec4f9c693a070df1a957ca8a1f3ab1e
vulkan: don't free uninitialised memory

The modifiers array hasn't been initialised by then, much less with data
that would need freeing.
Move the label after the loop to fix this.

Fixes: c80c08e22603 ("vulkan/wsi/x11: Add support for DRI3 v1.2")
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/vulkan/wsi/wsi_common_x11.c