]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Free pixmaps when killing windows (Thanks Mike)
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 22 May 2011 21:32:59 +0000 (23:32 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 22 May 2011 21:32:59 +0000 (23:32 +0200)
src/x.c

diff --git a/src/x.c b/src/x.c
index cfbf5a3d2be497f7cba33d8678c1a2d35c499ff5..f37ef9330e19ee77142242d2c3dd418f59e87bf1 100644 (file)
--- 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);