diff options
author | Isaac Freund <mail@isaacfreund.com> | 2021-11-06 13:32:43 +0100 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2021-11-06 13:35:26 +0100 |
commit | 8634dd3e6ab9e629e18c973898c1a01835f4f925 (patch) | |
tree | abc9d56ca535d1cbe013142c97c650105ec81e67 | |
parent | e13f3f860861af4495619e05be0b1554e32362bc (diff) |
output: fix leak of wlr_drm_format
-rw-r--r-- | types/output/cursor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/types/output/cursor.c b/types/output/cursor.c index dcaccade..0a6cbb75 100644 --- a/types/output/cursor.c +++ b/types/output/cursor.c @@ -264,6 +264,7 @@ static struct wlr_buffer *render_cursor_buffer(struct wlr_output_cursor *cursor) wlr_swapchain_destroy(output->cursor_swapchain); output->cursor_swapchain = wlr_swapchain_create(allocator, width, height, format); + free(format); if (output->cursor_swapchain == NULL) { wlr_log(WLR_ERROR, "Failed to create cursor swapchain"); return NULL; |