Bugfix: Free pixmaps when killing windows (Thanks Mike)

This commit is contained in:
Michael Stapelberg 2011-05-22 23:32:59 +02:00
parent 4c1392d8ab
commit 272a86745e
1 changed files with 2 additions and 0 deletions

View File

@ -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);