From: James Turner Date: Mon, 9 Dec 2013 23:25:04 +0000 (+0000) Subject: Shutdown: clear effects cleanly. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5d8fa03090bfa44eaa40a04efc5eb4c328317fb0;p=flightgear.git Shutdown: clear effects cleanly. Avoids effects (and referenced properties / objects within) persisting due to references in the effects cache, after globals are gone. --- diff --git a/src/Main/main.cxx b/src/Main/main.cxx index 7756a6d0c..f64e0d38a 100644 --- a/src/Main/main.cxx +++ b/src/Main/main.cxx @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -433,6 +434,8 @@ int fgMainInit( int argc, char **argv ) { frame_signal.clear(); fgOSCloseWindow(); + simgear::clearEffectCache(); + // clean up here; ensure we null globals to avoid // confusing the atexit() handler delete globals;