Fix a memory leak.
[ardour.git] / libs / ardour / ladspa_plugin.cc
index 54722488f628cf914d00b67dc7e358f607d73e93..43fa8e43eea7698cbe0370265788ecb4d4e327d3 100644 (file)
@@ -559,6 +559,8 @@ LadspaPlugin::connect_and_run (BufferSet& bufs,
                ChanMapping in_map, ChanMapping out_map,
                pframes_t nframes, framecnt_t offset)
 {
+       Plugin::connect_and_run (bufs, in_map, out_map, nframes, offset);
+       
        cycles_t now;
        cycles_t then = get_cycles ();
 
@@ -865,7 +867,7 @@ LadspaPlugin::do_save_preset (string name)
        std::string unique (unique_id());
 
        if (!isdigit (unique[0])) {
-               return false;
+               return "";
        }
 
        uint32_t const id = atol (unique.c_str());
@@ -883,7 +885,7 @@ LadspaPlugin::do_save_preset (string name)
        string const envvar = preset_envvar ();
        if (envvar.empty()) {
                warning << _("Could not locate HOME.  Preset not saved.") << endmsg;
-               return false;
+               return "";
        }
 
        string const source = preset_source (envvar);