summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-11-30 18:01:04 +0100
committerStanislaw Halik <sthalik@misaki.pl>2013-11-30 18:01:04 +0100
commitf413502750855ea1394e12650395697bcab01498 (patch)
tree97f8810f40770d6436d53819572b02d20c47f1f8 /x-plane-plugin
parent1b49a5e35ee4ee488cab443c0e040a2e58a76af0 (diff)
fix x-plane crashing on exit
Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Diffstat (limited to 'x-plane-plugin')
-rw-r--r--x-plane-plugin/plugin.c4
1 files changed, 4 insertions, 0 deletions
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 ) {