ref: ffde7bf885e8a4dbe08b470c82344e16805b0022
parent: 5f6600ecfb49a2d787173d4ed3ed662dd3c152a2
author: spiricom <jeff@snyderphonics.com>
date: Thu May 7 14:08:48 EDT 2020
fixed zero crossing free function
binary files a/.DS_Store b/.DS_Store differ
binary files a/LEAF/.DS_Store b/LEAF/.DS_Store differ
--- a/LEAF/Src/leaf-analysis.c
+++ b/LEAF/Src/leaf-analysis.c
@@ -113,11 +113,13 @@
z->inBuffer = (float*) mpool_calloc(sizeof(float) * maxWindowSize, m);
z->countBuffer = (uint16_t*) mpool_calloc(sizeof(uint16_t) * maxWindowSize, m);
}
+
void tZeroCrossing_freeFromPool (tZeroCrossing* const zc, tMempool* const mp)
{
_tMempool* m = *mp;
_tZeroCrossing* z = *zc;
-
+ mpool_free(z->inBuffer, m);
+ mpool_free(z->countBuffer, m);
mpool_free(z, m);
}