]> git.mxchange.org Git - flightgear.git/commit
Fix a potential use-after-free in ATC code
authorJames Turner <zakalawe@mac.com>
Mon, 11 Jan 2016 19:01:05 +0000 (13:01 -0600)
committerJames Turner <zakalawe@mac.com>
Tue, 12 Jan 2016 18:22:23 +0000 (12:22 -0600)
commita972df05dc643f4c944127596da403d23df7b876
tree19ba94d1b87da4950f41c3729f0dd43b4c821782
parent508c367c5b21b9ef96b8d89174c43fb484026c93
Fix a potential use-after-free in ATC code

- when dynamics shuts down the ATC controllers, they clear their
  traffic vectors (destroying the records), but we didn’t notify
  the AI aircraft of this. Ensure the controller is cleared so
  the AI aircraft shutdown doesn’t crash.
src/ATC/trafficcontrol.cxx