changeset 76:67e9ce27119d tony

added delete yinBuffer in local candidate pyin (to avoid memory leak)
author matthiasm
date Mon, 30 Jun 2014 11:13:33 +0100
parents e637cf916002
children 4cbbd87a8c7f
files LocalCandidatePYIN.cpp
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/LocalCandidatePYIN.cpp	Mon Jun 16 21:44:15 2014 +0100
+++ b/LocalCandidatePYIN.cpp	Mon Jun 30 11:13:33 2014 +0100
@@ -329,6 +329,8 @@
     m_pitchProb.push_back(tempPitchProb);
     m_timestamp.push_back(timestamp);
 
+    delete[] yinBuffer;
+
     return FeatureSet();
 }