Attempt to fix the Rosegarden crash.
commit4e589965840bbd15c967991a4229e87dc262a101
authorKrzysztof Foltman <wdev@foltman.com>
Fri, 9 Jul 2010 07:03:06 +0000 (9 08:03 +0100)
committerKrzysztof Foltman <wdev@foltman.com>
Fri, 9 Jul 2010 07:03:06 +0000 (9 08:03 +0100)
tree7a0c86819cc973bc7775652e38bbe07f603d15f0
parent4fbb849c7f69d9e52c7ddd73e0bad0970f235891
Attempt to fix the Rosegarden crash.

Rosegarden seems to unload the plugins after discovery, which interferes with
the cleanup of local static objects (like one created in ladspa_wrapper::get).
This workaround causes the wrapper object to never be cleaned up, which causes
a memory leak, but fixes the crash. Obviously, if this works, I will have to
convert it into a proper fix using __attribute__((destructor)).
src/calf/ladspa_wrap.h