From b7389c6f1a553b99527633c5d5ef7438eda67baf Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 13 May 2021 02:03:57 +0200 Subject: [PATCH] libinput tests: Fix new-delete-type-mismatch error when using ASAN --- autotests/libinput/mock_libinput.h | 1 + 1 file changed, 1 insertion(+) diff --git a/autotests/libinput/mock_libinput.h b/autotests/libinput/mock_libinput.h index c0bfaf6218..65e9d64df3 100644 --- a/autotests/libinput/mock_libinput.h +++ b/autotests/libinput/mock_libinput.h @@ -100,6 +100,7 @@ struct libinput_device { }; struct libinput_event { + virtual ~libinput_event() {} libinput_device *device = nullptr; libinput_event_type type = LIBINPUT_EVENT_NONE; quint32 time = 0;