diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-03 04:54:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-03 04:54:32 +0200 |
commit | 23c4bd03b66d8d49d1c7cf343dfe016506332b94 (patch) | |
tree | f11d8ae657faacbacdcc42efd519f9e4e7a140c7 /opentrack | |
parent | e94be88e28b41610bab983a1cbf8f31133a4ced8 (diff) | |
parent | 44d0136cb4b532c957d6c037ea6a862a1e371cd9 (diff) |
Merge pull request #178 from sbabbi/unstable
Small improvements to the x-plane plugin
Diffstat (limited to 'opentrack')
-rw-r--r-- | opentrack/plugin-support.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/opentrack/plugin-support.hpp b/opentrack/plugin-support.hpp index bc07c106..95b4b0a1 100644 --- a/opentrack/plugin-support.hpp +++ b/opentrack/plugin-support.hpp @@ -115,7 +115,8 @@ struct dylib { { fprintf(stderr, "Error, ignoring: %s\n", err); fflush(stderr); - dlclose(handle); + if (handle) + dlclose(handle); handle = nullptr; return true; } @@ -138,6 +139,7 @@ struct dylib { return; } else { (void) _foo::err(handle); + return; } #endif |