From d07158932f2fdc50d8425a6c190eea66e3bcb792 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Tue, 24 Jan 2023 02:49:49 +0100 Subject: 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 --- src/client/qwaylandtabletv2.cpp | 3 +++ 1 file changed, 3 insertions(+) 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(); } -- cgit v1.2.3