From: Thomas Geymayer Date: Sun, 15 Jun 2014 14:36:35 +0000 (+0200) Subject: NasalSys: process nasal::Ghost deletion queue. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=26a49486423abd14c02aa178354b39eb06f61297;p=flightgear.git NasalSys: process nasal::Ghost deletion queue. --- diff --git a/src/Scripting/NasalSys.cxx b/src/Scripting/NasalSys.cxx index cc56043d5..7a1f9fe63 100644 --- a/src/Scripting/NasalSys.cxx +++ b/src/Scripting/NasalSys.cxx @@ -926,6 +926,9 @@ void FGNasalSys::update(double) _unloadList.pop()->unload(); } + // Destroy all queued ghosts + nasal::ghostProcessDestroyList(); + // The global context is a legacy thing. We use dynamically // created contexts for naCall() now, so that we can call them // recursively. But there are still spots that want to use it for