From bab1d6596f1a8404e88e2d93092e7be1f9d4ca93 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 14 Sep 2013 21:50:35 +0200 Subject: Don't leak any memory, ever (?) --- x-plane-plugin/plugin.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'x-plane-plugin') 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 ) { -- cgit v1.2.3