summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2013-09-14 21:50:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2013-09-14 21:50:35 +0200
commitbab1d6596f1a8404e88e2d93092e7be1f9d4ca93 (patch)
treeca4842f418ce980984742472d32730b4e883a633
parentb25bc9bf12fe8dffadde9e03ab1f9119a681158c (diff)
Don't leak any memory, ever (?)
-rw-r--r--x-plane-plugin/plugin.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/x-plane-plugin/plugin.c b/x-plane-plugin/plugin.c
index 33023a81..9bc5c484 100644
--- a/x-plane-plugin/plugin.c
+++ b/x-plane-plugin/plugin.c
@@ -127,6 +127,8 @@ PLUGIN_API int XPluginStart ( char * outName, char * outSignature, char * outDes
}
PLUGIN_API void XPluginStop ( void ) {
+ if (lck_posix)
+ PortableLockedShm_free(lck_posix);
}
PLUGIN_API void XPluginEnable ( void ) {