diff --git a/simgear/nasal/NasalEmesaryInterface.cxx b/simgear/nasal/NasalEmesaryInterface.cxx index 609dd214..65e42826 100644 --- a/simgear/nasal/NasalEmesaryInterface.cxx +++ b/simgear/nasal/NasalEmesaryInterface.cxx @@ -57,7 +57,11 @@ namespace nasal class ThreadedGarbageCollector : public SGExclusiveThread { public: ThreadedGarbageCollector() : SGExclusiveThread() {} - virtual ~ThreadedGarbageCollector() {} + + virtual ~ThreadedGarbageCollector() + { + terminate(); + } int process() override{ return naGarbageCollect();