summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2023-01-24 02:49:49 +0100
committerAleix Pol <aleixpol@kde.org>2023-01-24 14:30:40 +0100
commitd07158932f2fdc50d8425a6c190eea66e3bcb792 (patch)
treef7ce2cc9f7510d7b60f5d326137ace77b40a38c3 /src
parent6e2dcb410b8a65d6da3a19ded28ec1eea389c593 (diff)
downloadqtwayland-d07158932f2fdc50d8425a6c190eea66e3bcb792.tar.gz
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>
Diffstat (limited to 'src')
-rw-r--r--src/client/qwaylandtabletv2.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/client/qwaylandtabletv2.cpp b/src/client/qwaylandtabletv2.cpp
index 8a0544ae..5e1cc8fe 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();
}