tools: record: fix segfault on exit
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 31 Jul 2019 22:28:13 +0000 (08:28 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 31 Jul 2019 22:40:58 +0000 (08:40 +1000)
commit803519ae59cc8214a898159a27131d7c96a7a157
treeb4ebd44b9d20307590335300ab2f4a668c2b9b47
parent5b20d7f4824615a6bda116db7583d58b3b9cbd16
tools: record: fix segfault on exit

If we don't supply --with-libinput, the device is NULL so we can't unref it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-record.c