Browse Source

Fix memory leak

chirpmodem-v8.0.0
Jon Beniston 4 months ago
parent
commit
6373df9f8a
  1. 6
      plugins/feature/ais/aisgui.cpp

6
plugins/feature/ais/aisgui.cpp

@ -152,9 +152,13 @@ bool AISGUI::handleMessage(const Message& message) @@ -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;

Loading…
Cancel
Save