mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-02-04 23:20:29 +01:00
Allow for NULL in libevdev_event_destroy
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
1dad790a7f
commit
c188943568
1 changed files with 3 additions and 0 deletions
|
|
@ -421,6 +421,9 @@ libinput_event_get_class(struct libinput_event *event)
|
|||
LIBINPUT_EXPORT void
|
||||
libinput_event_destroy(struct libinput_event *event)
|
||||
{
|
||||
if (event == NULL)
|
||||
return;
|
||||
|
||||
switch (libinput_event_get_class(event)) {
|
||||
case LIBINPUT_EVENT_CLASS_BASE:
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue