aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-14 16:29:57 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-14 16:30:10 +0200
commite922e62924314866620cce662756ff09c8092cc2 (patch)
treec51bfcd472cf38df7528eab9330bb0e44981ffbb /backend
parent4bbf718e7dca39e2838cce7c07c89faffd73840a (diff)
wayland input_device_destroy: add missing braces
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/wl_seat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c
index 010566bb..43e73dac 100644
--- a/backend/wayland/wl_seat.c
+++ b/backend/wayland/wl_seat.c
@@ -169,8 +169,9 @@ static struct wl_keyboard_listener keyboard_listener = {
static void input_device_destroy(struct wlr_input_device *_dev) {
struct wlr_wl_input_device *dev = (struct wlr_wl_input_device *)_dev;
wl_signal_emit(&dev->backend->backend.events.input_remove, &dev->wlr_input_device);
- if (dev->resource)
+ if (dev->resource) {
wl_proxy_destroy(dev->resource);
+ }
free(dev);
}