mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
output: fix leak of wlr_drm_format
This commit is contained in:
parent
e13f3f8608
commit
8634dd3e6a
1 changed files with 1 additions and 0 deletions
|
@ -264,6 +264,7 @@ static struct wlr_buffer *render_cursor_buffer(struct wlr_output_cursor *cursor)
|
||||||
wlr_swapchain_destroy(output->cursor_swapchain);
|
wlr_swapchain_destroy(output->cursor_swapchain);
|
||||||
output->cursor_swapchain = wlr_swapchain_create(allocator,
|
output->cursor_swapchain = wlr_swapchain_create(allocator,
|
||||||
width, height, format);
|
width, height, format);
|
||||||
|
free(format);
|
||||||
if (output->cursor_swapchain == NULL) {
|
if (output->cursor_swapchain == NULL) {
|
||||||
wlr_log(WLR_ERROR, "Failed to create cursor swapchain");
|
wlr_log(WLR_ERROR, "Failed to create cursor swapchain");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue