1
0
Fork 0

Fix a read of freed-data when closing props channels

Ensure we close all channels, before the NetPoller is destroyed, to
avoid a use-after-free.
This commit is contained in:
James Turner 2020-08-12 15:32:52 +01:00
parent a05e5075b2
commit 16ae171333

View file

@ -717,6 +717,10 @@ FGProps::FGProps( const vector<string>& tokens )
*/
FGProps::~FGProps()
{
// ensure all channels are closed before our poller is destroyed
if (is_enabled()) {
close();
}
}
/**