mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-08-11 22:13:43 -04:00
Fix memory leak
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user