| @@ -206,7 +206,7 @@ void tEnvPD_free (tEnvPD* const xpd) · 205 unmodified lines |
| 206 | void tEnvPD_initToPool (tEnvPD* const xpd, int ws, int hs, int bs, tMempool* const mp) | 206 | void tEnvPD_initToPool (tEnvPD* const xpd, int ws, int hs, int bs, tMempool* const mp) |
| 207 | { | 207 | { |
| 208 | _tMempool* m = *mp; | 208 | _tMempool* m = *mp; |
| 209 | _tEnvPD* x = *xpd = (_tEnvPD*) mpool_alloc(sizeof(_tEnvPD), &m->pool); | 209 | _tEnvPD* x = *xpd = (_tEnvPD*) mpool_allocAndClear(sizeof(_tEnvPD), &m->pool); |
| 210 | | 210 | |
| 211 | int period = hs, npoints = ws; | 211 | int period = hs, npoints = ws; |
| 212 | | 212 | |
| @@ -875,7 +875,7 @@ void tPeriodDetection_free (tPeriodDetection* const pd) · 662 unmodified lines |
| 875 | void tPeriodDetection_initToPool (tPeriodDetection* const pd, float* in, float* out, int bufSize, int frameSize, tMempool* const mp) | 875 | void tPeriodDetection_initToPool (tPeriodDetection* const pd, float* in, float* out, int bufSize, int frameSize, tMempool* const mp) |
| 876 | { | 876 | { |
| 877 | _tMempool* m = *mp; | 877 | _tMempool* m = *mp; |
| 878 | _tPeriodDetection* p = *pd = (_tPeriodDetection*) mpool_alloc(sizeof(_tPeriodDetection), &m->pool); | 878 | _tPeriodDetection* p = *pd = (_tPeriodDetection*) mpool_allocAndClear(sizeof(_tPeriodDetection), &m->pool); |
| 879 | | 879 | |
| 880 | p->inBuffer = in; | 880 | p->inBuffer = in; |
| 881 | p->outBuffer = out; | 881 | p->outBuffer = out; |