vulkan/wsi: Free the event in x11_manage_fifo_queues().
authorHenri Verbeet <hverbeet@gmail.com>
Fri, 13 Oct 2017 15:10:26 +0000 (17:10 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 17 Oct 2017 16:17:15 +0000 (17:17 +0100)
Cc: mesa-stable@lists.freedesktop.org
Signed-off-by: Henri Verbeet <hverbeet@gmail.com>
Fixes: e73d136a023 ("vulkan/wsi/x11: Implement FIFO mode.")
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com
src/vulkan/wsi/wsi_common_x11.c

index ecdaf914344943f7ab5fb14320c5442fd1a67f01..22b067bf787b92b87825bbaabf6346d3dfd466fd 100644 (file)
@@ -939,6 +939,7 @@ x11_manage_fifo_queues(void *state)
             goto fail;
 
          result = x11_handle_dri3_present_event(chain, (void *)event);
+         free(event);
          if (result != VK_SUCCESS)
             goto fail;
       }