diff options
author | Aleix Pol <aleixpol@kde.org> | 2023-01-24 02:49:49 +0100 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2023-01-24 14:30:40 +0100 |
commit | d07158932f2fdc50d8425a6c190eea66e3bcb792 (patch) | |
tree | f7ce2cc9f7510d7b60f5d326137ace77b40a38c3 | |
parent | 6e2dcb410b8a65d6da3a19ded28ec1eea389c593 (diff) |
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>
-rw-r--r-- | src/client/qwaylandtabletv2.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/qwaylandtabletv2.cpp b/src/client/qwaylandtabletv2.cpp index 8a0544aeb..5e1cc8fe4 100644 --- a/src/client/qwaylandtabletv2.cpp +++ b/src/client/qwaylandtabletv2.cpp @@ -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(); } |