From 008707407c5d7160cdac8c2c5dbe99facf1a5c75 Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 14 Jun 2013 10:39:32 +0200 Subject: Fix memory leak in MQPartialTracking --- src/simpl/partial_tracking.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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, -- cgit v1.2.3