Fix memory leaks in LADSPA plugins