Merge pull request #3637 from i3/stapelberg-patch-1
x.c: correctly free con->frame_buffer in _x_con_kill
This commit is contained in:
commit
297abe0edd
1
src/x.c
1
src/x.c
|
@ -268,6 +268,7 @@ static void _x_con_kill(Con *con) {
|
||||||
draw_util_surface_free(conn, &(con->frame));
|
draw_util_surface_free(conn, &(con->frame));
|
||||||
draw_util_surface_free(conn, &(con->frame_buffer));
|
draw_util_surface_free(conn, &(con->frame_buffer));
|
||||||
xcb_free_pixmap(conn, con->frame_buffer.id);
|
xcb_free_pixmap(conn, con->frame_buffer.id);
|
||||||
|
con->frame_buffer.id = XCB_NONE;
|
||||||
state = state_for_frame(con->frame.id);
|
state = state_for_frame(con->frame.id);
|
||||||
CIRCLEQ_REMOVE(&state_head, state, state);
|
CIRCLEQ_REMOVE(&state_head, state, state);
|
||||||
CIRCLEQ_REMOVE(&old_state_head, state, old_state);
|
CIRCLEQ_REMOVE(&old_state_head, state, old_state);
|
||||||
|
|
Loading…
Reference in New Issue