wlroots/render
Kenny Levinsen d5117961b4 render/vulkan: Avoid double-free on calloc error
In query_modifier_support, the calloc for either or both of render_mods
and texture_mods may fail, in which case both are freed for convenience.
However, if one is non-NULL, vulkan_format_props_finish will try to free
it again.

NULL them to avoid double-free.

(cherry picked from commit 4d68d3759b)
2024-04-12 09:34:55 -04:00
..
allocator render/allocator: log message when GBM is disabled 2023-10-06 09:10:31 +00:00
gles2 gles2: Avoid crash when glGetInteger64vEXT is missing 2024-04-12 09:34:55 -04:00
pixman treewide: Migrate from sizeof(struct) to sizeof(*pointer) where practical 2023-10-03 01:51:07 -04:00
vulkan render/vulkan: Avoid double-free on calloc error 2024-04-12 09:34:55 -04:00
dmabuf.c Avoid using memcpy() to copy structs 2023-08-03 14:40:28 +00:00
dmabuf_fallback.c render/dmabuf: add dmabuf_export_sync_file() 2022-12-06 14:54:09 +00:00
dmabuf_linux.c render/dmabuf: add dmabuf_export_sync_file() 2022-12-06 14:54:09 +00:00
drm_format_set.c Use struct initializers instead of memset() 2023-07-07 17:31:11 +02:00
egl.c render/egl: fallback to GBM FD if EGLDevice is not available 2023-12-01 09:55:55 -05:00
meson.build Add a new renderer API 2023-04-25 17:25:10 +02:00
pass.c render/pass: Remove empty box early return 2023-09-21 02:25:34 -04:00
pixel_format.c render/pixel-format: add YVYU and VYUY 2023-05-21 20:28:45 +00:00
swapchain.c Use struct initializers instead of memset() 2023-07-07 17:31:11 +02:00
wlr_renderer.c render: disable linux-dmabuf without DRM FD 2023-12-04 10:53:32 -05:00
wlr_texture.c Use struct initializers instead of memset() 2023-07-07 17:31:11 +02:00