Allow for NULL in libevdev_event_destroy

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2013-12-09 21:26:54 +10:00 committed by Jonas Ådahl
parent 1dad790a7f
commit c188943568

View file

@ -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;