aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/output/cursor.c1
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;