]> git.sur5r.net Git - i3/i3/commitdiff
x.c: fix memory leak
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 12:13:57 +0000 (13:13 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 9 Jan 2016 12:13:57 +0000 (13:13 +0100)
src/x.c

diff --git a/src/x.c b/src/x.c
index a5aca55b41dcf22cb73143d527a13924fcee2106..a14c25fa088d6004cedd156e0c0ce4b97bc6a3e8 100644 (file)
--- a/src/x.c
+++ b/src/x.c
@@ -1080,6 +1080,8 @@ void x_push_changes(Con *con) {
                 xcb_warp_pointer(conn, XCB_NONE, root, 0, 0, 0, 0, mid_x, mid_y);
                 xcb_change_window_attributes(conn, root, XCB_CW_EVENT_MASK, (uint32_t[]){ROOT_EVENT_MASK});
             }
+
+            free(pointerreply);
         }
         warp_to = NULL;
     }