From: Michael Stapelberg Date: Sun, 22 May 2011 21:32:59 +0000 (+0200) Subject: Bugfix: Free pixmaps when killing windows (Thanks Mike) X-Git-Tag: tree-pr3~12 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=272a86745eafe9dc5f651507c9f929b72d78922c;p=i3%2Fi3 Bugfix: Free pixmaps when killing windows (Thanks Mike) --- diff --git a/src/x.c b/src/x.c index cfbf5a3d..f37ef933 100644 --- a/src/x.c +++ b/src/x.c @@ -162,6 +162,8 @@ void x_con_kill(Con *con) { con_state *state; xcb_destroy_window(conn, con->frame); + xcb_free_pixmap(conn, con->pixmap); + xcb_free_gc(conn, con->pm_gc); state = state_for_frame(con->frame); CIRCLEQ_REMOVE(&state_head, state, state); CIRCLEQ_REMOVE(&old_state_head, state, old_state);