QWaylandTabletSeatV2: Do not leak tablet information

Clean up after the information we allocated, this way address sanitizer
doesn't complain about it leaking.

Change-Id: Ib7ade93d6585b8c6be6a71d0497801d9cfe75d2f
Reviewed-by: David Edmundson <davidedmundson@kde.org>
This commit is contained in:
Aleix Pol 2023-01-24 02:49:49 +01:00
parent bc44aa6607
commit 9c35dc2284

View File

@ -38,6 +38,9 @@ QWaylandTabletSeatV2::~QWaylandTabletSeatV2()
tool->destroy();
for (auto *pad : m_pads)
pad->destroy();
qDeleteAll(m_tablets);
qDeleteAll(m_tools);
qDeleteAll(m_pads);
destroy();
}