diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-12-20 17:24:31 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2015-12-20 17:24:31 +0100 |
commit | 64e5faf11c22c8aabf181288293c8ec7964c213d (patch) | |
tree | f0669001e9eef2aa883df85f401947d843f684b4 /drumgizmo/audiooutputenginedl.cc | |
parent | b697682bd3c1b9cdfde97cd6a7c9d0f10103f6b4 (diff) | |
parent | 0fa481dabf620181c852f43923a3c4b049294ab4 (diff) |
Merge remote-tracking branch 'origin/master' into uirefactor
Diffstat (limited to 'drumgizmo/audiooutputenginedl.cc')
-rw-r--r-- | drumgizmo/audiooutputenginedl.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drumgizmo/audiooutputenginedl.cc b/drumgizmo/audiooutputenginedl.cc index dad2c5c..042db4a 100644 --- a/drumgizmo/audiooutputenginedl.cc +++ b/drumgizmo/audiooutputenginedl.cc @@ -36,7 +36,7 @@ AudioOutputEngineDL::AudioOutputEngineDL(std::string name) is_jack_plugin = strstr(name.c_str(), "jack"); std::string plugin = OUTPUT_PLUGIN_DIR"/" + name + ".so"; - void *lib = dlopen(plugin.c_str(), RTLD_LAZY); + lib = dlopen(plugin.c_str(), RTLD_LAZY); if(!lib) { printf("Cannot load device: %s\n", dlerror()); return; @@ -132,6 +132,8 @@ AudioOutputEngineDL::~AudioOutputEngineDL() { o_destroy(ptr); if(is_jack_plugin) close_jack_client(); + dlclose(lib); + lib = nullptr; } bool AudioOutputEngineDL::init(Channels channels) |