[swift] Fix memory leak in traffic-service
This commit is contained in:
parent
eb3fba1871
commit
ee0d03b4d0
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ CTraffic::CTraffic()
|
|||
CTraffic::~CTraffic()
|
||||
{
|
||||
cleanup();
|
||||
delete acm;
|
||||
acm = nullptr;
|
||||
SG_LOG(SG_NETWORK, SG_INFO, "FGSwiftBus Traffic stopped");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue