From f413502750855ea1394e12650395697bcab01498 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 30 Nov 2013 18:01:04 +0100 Subject: fix x-plane crashing on exit Signed-off-by: Stanislaw Halik --- x-plane-plugin/plugin.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'x-plane-plugin') diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c index a8fd28d2..ed6cdaff 100644 --- a/x-plane-plugin/plugin.c +++ b/x-plane-plugin/plugin.c @@ -129,7 +129,11 @@ PLUGIN_API int XPluginStart ( char * outName, char * outSignature, char * outDes PLUGIN_API void XPluginStop ( void ) { if (lck_posix) + { PortableLockedShm_free(lck_posix); + lck_posix = NULL; + shm_posix = NULL; + } } PLUGIN_API void XPluginEnable ( void ) { -- cgit v1.2.3