changeset 359:b1dc04c74671 v1.1

Fix memory leak in EM
author Chris Cannam
date Tue, 08 Sep 2015 10:58:19 +0100
parents cd61b43573bb
children 87b3d04c1447
files src/EM.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/EM.cpp	Mon Sep 07 16:24:05 2015 +0100
+++ b/src/EM.cpp	Tue Sep 08 10:58:19 2015 +0100
@@ -245,6 +245,8 @@
         }
     }
 
+    deallocate(contributions);
+    
     if (m_pitchSparsity != 1.0) {
         for (int n = 0; n < m_noteCount; ++n) {
             m_updatePitches[n] =