diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-29 08:00:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-29 08:00:59 -0400 |
commit | a0f490306395ac3705c00ecc85b4a0bba721886e (patch) | |
tree | f5893498ca64b24883e8a1b9f571ea54359efad3 /backend/headless | |
parent | 795d4071db1ae504e8f5748005513d89ec7064ea (diff) | |
parent | f8e0a034512d4c5a69dde4f5cd02df53af216b72 (diff) | |
download | wlroots-a0f490306395ac3705c00ecc85b4a0bba721886e.tar.xz |
Merge pull request #926 from emersion/fix-x11-backend-memory-leaks
Fix some backend memory leaks
Diffstat (limited to 'backend/headless')
-rw-r--r-- | backend/headless/input_device.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/backend/headless/input_device.c b/backend/headless/input_device.c index daa22436..a1e18428 100644 --- a/backend/headless/input_device.c +++ b/backend/headless/input_device.c @@ -9,15 +9,7 @@ #include "backend/headless.h" #include "util/signal.h" -static void input_device_destroy(struct wlr_input_device *wlr_dev) { - struct wlr_headless_input_device *device = - (struct wlr_headless_input_device *)wlr_dev; - free(device); -} - -static const struct wlr_input_device_impl input_device_impl = { - .destroy = input_device_destroy, -}; +static const struct wlr_input_device_impl input_device_impl = { 0 }; bool wlr_input_device_is_headless(struct wlr_input_device *wlr_dev) { return wlr_dev->impl == &input_device_impl; |