aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Di Ma <focus64@gmail.com>2020-03-22 15:29:19 -0700
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2020-04-14 19:41:30 -0400
commitc1c2fe04bbdab8380db62cd3b481356abea2facd (patch)
treeb25bf3bba0f4b638529f397e41d1a44fb6fa76b5
parentFix a use-after-free error in switch binding (diff)
downloadsway-c1c2fe04bbdab8380db62cd3b481356abea2facd.tar.gz
sway-c1c2fe04bbdab8380db62cd3b481356abea2facd.tar.zst
sway-c1c2fe04bbdab8380db62cd3b481356abea2facd.zip
Fix a use-after-free error in switch binding
-rw-r--r--sway/input/switch.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/input/switch.c b/sway/input/switch.c
index 8347f066..3bbc636d 100644
--- a/sway/input/switch.c
+++ b/sway/input/switch.c
@@ -4,7 +4,6 @@
4#include "sway/input/switch.h" 4#include "sway/input/switch.h"
5#include <wlr/types/wlr_idle.h> 5#include <wlr/types/wlr_idle.h>
6#include "log.h" 6#include "log.h"
7#include <string.h>
8 7
9struct sway_switch *sway_switch_create(struct sway_seat *seat, 8struct sway_switch *sway_switch_create(struct sway_seat *seat,
10 struct sway_seat_device *device) { 9 struct sway_seat_device *device) {