From d60bbc935a1c7137c766792bf569ea7d6800fba9 Mon Sep 17 00:00:00 2001 From: John Glover Date: Fri, 7 Jun 2013 13:00:55 +0200 Subject: Fix memory leaks in peak detection processes --- tests/test_peak_detection.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests/test_peak_detection.cpp') diff --git a/tests/test_peak_detection.cpp b/tests/test_peak_detection.cpp index e0eba9e..5aeca75 100644 --- a/tests/test_peak_detection.cpp +++ b/tests/test_peak_detection.cpp @@ -21,8 +21,8 @@ void TestMQPeakDetection::test_find_peaks_in_frame_basic() { _pd.frame_size(frame_size); Frame f = Frame(frame_size, true); - Peaks p = _pd.find_peaks_in_frame(&f); - CPPUNIT_ASSERT(p.size() == 0); + _pd.find_peaks_in_frame(&f); + CPPUNIT_ASSERT(f.num_peaks() == 0); } void TestMQPeakDetection::test_find_peaks_basic() { @@ -112,8 +112,8 @@ void TestLorisPeakDetection::test_find_peaks_in_frame_basic() { _pd.frame_size(frame_size); Frame f = Frame(frame_size, true); - Peaks p = _pd.find_peaks_in_frame(&f); - CPPUNIT_ASSERT(p.size() == 0); + _pd.find_peaks_in_frame(&f); + CPPUNIT_ASSERT(f.num_peaks() == 0); } void TestLorisPeakDetection::test_find_peaks_basic() { -- cgit v1.2.3