Fix (workaround) GUI hang on Linux

On second display of LV2 effect using an X11UI, Audacity
would hang due to the glib class not being in the expected
state.

Workaround is to not unload the suil wrapper library. The
unload was already being bypassed on Windows so I'm unsure
why the author didn't do it on the other platforms.
This commit is contained in:
Leland Lucius 2021-02-26 00:53:45 -06:00
parent 15dcb343f3
commit e6ec236a39
1 changed files with 2 additions and 2 deletions

View File

@ -346,8 +346,8 @@ suil_instance_free(SuilInstance* instance)
// Close libraries and free everything
if (instance->wrapper) {
#ifndef _WIN32
// Never unload modules on windows, causes mysterious segfaults
dlclose(instance->wrapper->lib);
// Never unload modules, causes mysterious segfaults
// dlclose(instance->wrapper->lib);
#endif
free(instance->wrapper);
}