changeset 10:12f250173bf2

* Delete reader after use!
author Chris Cannam
date Fri, 12 Dec 2008 15:33:55 +0000
parents c8caebf2d79f
children 21a31c779384
files runner/FeatureExtractionManager.cpp
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runner/FeatureExtractionManager.cpp	Fri Dec 12 14:40:55 2008 +0000
+++ b/runner/FeatureExtractionManager.cpp	Fri Dec 12 15:33:55 2008 +0000
@@ -254,8 +254,7 @@
                 m_pluginOutputIndices[outputs[i].identifier] = i;
             }
 
-            cerr << "NOTE: Loaded and initialised plugin " << plugin
-                 << " for transform \""
+            cerr << "NOTE: Loaded and initialised plugin for transform \""
                  << transform.getIdentifier().toStdString() << "\"" << endl;
 
         } else {
@@ -572,6 +571,8 @@
         progress = int(((i - startFrame) * 100.0) / (endFrame - startFrame) + 0.1);
         if (progress > pp) extractionProgress.setProgress(progress);
     }
+
+    delete reader;
     
     for (PluginMap::iterator pi = m_plugins.begin();
          pi != m_plugins.end(); ++pi) {