From 33634fbacdbf64b6ba1df2026f73b4e67c910667 Mon Sep 17 00:00:00 2001 From: Orestis Floros Date: Mon, 14 Oct 2019 17:34:22 +0300 Subject: [PATCH] Fix i3bar leak on handle_destroy_notify --- i3bar/src/xcb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index ad9745fb..6b135e44 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -999,6 +999,8 @@ static void handle_destroy_notify(xcb_destroy_notify_event_t *event) { DLOG("Removing tray client with window ID %08x\n", event->window); TAILQ_REMOVE(output->trayclients, client, tailq); + free(client->class_class); + free(client->class_instance); FREE(client); /* Trigger an update, we now have more space for the statusline */