Mesa (staging/22.1): wsi/x11: Don't leak xcb_get_geometry_reply_t.
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon May 9 18:19:53 UTC 2022
Module: Mesa
Branch: staging/22.1
Commit: b78272daa59a47f052c31e123b256843cfde29e4
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b78272daa59a47f052c31e123b256843cfde29e4
Author: Georg Lehmann <dadschoorse at gmail.com>
Date: Sun May 8 01:30:42 2022 +0200
wsi/x11: Don't leak xcb_get_geometry_reply_t.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6443
Fixes: 44a20baeb8b ("wsi/x11: Avoid using xcb_wait_for_special_event in FIFO modes")
Signed-off-by: Georg Lehmann <dadschoorse at gmail.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16384>
---
src/vulkan/wsi/wsi_common_x11.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c
index 3bcf152baff..5fdb431740e 100644
--- a/src/vulkan/wsi/wsi_common_x11.c
+++ b/src/vulkan/wsi/wsi_common_x11.c
@@ -1495,6 +1495,7 @@ x11_manage_fifo_queues(void *state)
result = VK_ERROR_SURFACE_LOST_KHR;
goto fail;
}
+ free(geometry);
}
}
}
More information about the mesa-commit
mailing list