allow to customize variable i/o plugin inputs
[ardour.git] / libs / ardour / plugin_manager.cc
index d868b1d00aede6eb4c0007530e54b38fd6f1ca62..269cb0d801da45c7e830e4cc9f2f8f9a767a9d7b 100644 (file)
@@ -582,6 +582,11 @@ PluginManager::ladspa_discover (string path)
        DEBUG_TRACE (DEBUG::PluginManager, string_compose ("LADSPA plugin found at %1\n", path));
 
        for (uint32_t i = 0; ; ++i) {
+               /* if a ladspa plugin allocates memory here
+                * it is never free()ed (or plugin-dependent only when unloading).
+                * For some plugins memory allocated is incremental, we should
+                * avoid re-scanning plugins and file bug reports.
+                */
                if ((descriptor = dfunc (i)) == 0) {
                        break;
                }