From 6373df9f8a5f1fa8f8b5dea3a55466a9a30dd2de Mon Sep 17 00:00:00 2001 From: Jon Beniston Date: Fri, 31 Jul 2026 02:05:35 +0100 Subject: [PATCH] Fix memory leak --- plugins/feature/ais/aisgui.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/feature/ais/aisgui.cpp b/plugins/feature/ais/aisgui.cpp index e8514a27b..3651f2043 100644 --- a/plugins/feature/ais/aisgui.cpp +++ b/plugins/feature/ais/aisgui.cpp @@ -152,9 +152,13 @@ bool AISGUI::handleMessage(const Message& message) // Decode the message AISMessage *ais = AISMessage::decode(report.getPacket()); // Update table - if (ais) { + if (ais) + { updateVessels(ais, report.getDateTime()); + delete ais; } + + return true; } return false;