Skip to content

Commit

Permalink
Fix i3bar leak on handle_destroy_notify
Browse files Browse the repository at this point in the history
  • Loading branch information
orestisfl committed Oct 14, 2019
1 parent a638e04 commit 33634fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions i3bar/src/xcb.c
Expand Up @@ -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 */
Expand Down

0 comments on commit 33634fb

Please sign in to comment.