From 71de41a57067563e34b67199e91c92e0d3c256b5 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 14 Aug 2020 16:50:39 +0200 Subject: [PATCH] Don't leak screens when cleaning up Found using ASAN. --- plugins/qpa/integration.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/qpa/integration.cpp b/plugins/qpa/integration.cpp index de1c97c052..ebce5165ac 100644 --- a/plugins/qpa/integration.cpp +++ b/plugins/qpa/integration.cpp @@ -44,7 +44,10 @@ Integration::Integration() { } -Integration::~Integration() = default; +Integration::~Integration() +{ + qDeleteAll(m_screens); +} bool Integration::hasCapability(Capability cap) const {