From 1e2e21459b9bad35eabd84eae2ad5ef267c75ea7 Mon Sep 17 00:00:00 2001 From: Robin Getz Date: Thu, 3 Sep 2026 22:52:13 -0400 Subject: [PATCH] planespotters: Clean up cached PlaneSpotters photos ASAN reported leaked aircraft photos when PlaneSpotters was destroyed. Delete the cached photos during destruction. This ensures cached photo objects are released when their owning PlaneSpotters instance goes away. Signed-off-by: Robin Getz --- sdrbase/util/planespotters.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/sdrbase/util/planespotters.cpp b/sdrbase/util/planespotters.cpp index 704e2f92c..e930479a0 100644 --- a/sdrbase/util/planespotters.cpp +++ b/sdrbase/util/planespotters.cpp @@ -46,6 +46,7 @@ PlaneSpotters::~PlaneSpotters() &PlaneSpotters::handleReply ); delete m_networkManager; + qDeleteAll(m_photos); } void PlaneSpotters::getAircraftPhoto(const QString& icao)