diff options
author | John Glover <j@johnglover.net> | 2013-06-14 10:39:32 +0200 |
---|---|---|
committer | John Glover <j@johnglover.net> | 2013-06-14 10:39:32 +0200 |
commit | 008707407c5d7160cdac8c2c5dbe99facf1a5c75 (patch) | |
tree | 46e39b22b6427bd2e0d095d2e834c4d5d8f95ac5 /src | |
parent | 867963906f35b676e100e5310c729ab342db1851 (diff) | |
download | simpl-008707407c5d7160cdac8c2c5dbe99facf1a5c75.tar.gz simpl-008707407c5d7160cdac8c2c5dbe99facf1a5c75.tar.bz2 simpl-008707407c5d7160cdac8c2c5dbe99facf1a5c75.zip |
Fix memory leak in MQPartialTracking
Diffstat (limited to 'src')
-rw-r--r-- | src/simpl/partial_tracking.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/simpl/partial_tracking.cpp b/src/simpl/partial_tracking.cpp index bb22709..f93f1fd 100644 --- a/src/simpl/partial_tracking.cpp +++ b/src/simpl/partial_tracking.cpp @@ -128,6 +128,7 @@ void MQPartialTracking::update_partials(Frame* frame) { MQPeakList* partials = mq_track_peaks(_peak_list, &_mq_params); partials = mq_sort_peaks_by_frequency(partials, num_peaks); + _peak_list = partials; int num_partials = 0; while(partials && partials->peak && (num_partials < _max_partials)) { frame->add_partial(partials->peak->amplitude, |