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;