summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-03 04:54:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-03 04:54:32 +0200
commit23c4bd03b66d8d49d1c7cf343dfe016506332b94 (patch)
treef11d8ae657faacbacdcc42efd519f9e4e7a140c7 /opentrack
parente94be88e28b41610bab983a1cbf8f31133a4ced8 (diff)
parent44d0136cb4b532c957d6c037ea6a862a1e371cd9 (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.hpp4
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