i3lock-color

The world's most popular non-default computer lockscreen.
Index Commits Files Refs README LICENSE
commit 31314863780038fb4498a13316133237043f923c
parent 4fca1ff1b1679ae477b05166dfed3438f8069725
Author: Cassandra <cassandra@techfo.xyz>
Date:   Wed, 21 Mar 2018 16:25:11 -0400

Merge branch 'master' of https://github.com/i3/i3lock

Diffstat:
Mxcb.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/xcb.c b/xcb.c
@@ -236,6 +236,9 @@ bool grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb
             break;
         }
 
+        /* In case the grab failed, we still need to free the reply */
+        free(preply);
+
         /* Make this quite a bit slower */
         usleep(50);
 
@@ -270,6 +273,9 @@ bool grab_pointer_and_keyboard(xcb_connection_t *conn, xcb_screen_t *screen, xcb
             break;
         }
 
+        /* In case the grab failed, we still need to free the reply */
+        free(kreply);
+
         /* Make this quite a bit slower */
         usleep(50);