From: Orestis Date: Tue, 19 Mar 2019 09:16:30 +0000 (+0200) Subject: Merge pull request #3637 from i3/stapelberg-patch-1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=297abe0eddbbd61ae39e5757441c98ad7d34ccb2;hp=9bd2224520741c743759b81c26b7a65ecf0af6fe;p=i3%2Fi3 Merge pull request #3637 from i3/stapelberg-patch-1 x.c: correctly free con->frame_buffer in _x_con_kill --- diff --git a/src/x.c b/src/x.c index f643a9b3..e6d875e5 100644 --- a/src/x.c +++ b/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_buffer)); xcb_free_pixmap(conn, con->frame_buffer.id); + con->frame_buffer.id = XCB_NONE; state = state_for_frame(con->frame.id); CIRCLEQ_REMOVE(&state_head, state, state); CIRCLEQ_REMOVE(&old_state_head, state, old_state);