History

fixed zero crossing free function

spiricom committed 6 years ago

Commit ffde7bf1 parent 5f6600e3 files · +1 −-1Browse files

Unified · Split

3 files
  1. .DS_Store +0 −0
  2. LEAF/.DS_Store +0 −0
  3. LEAF/Src/leaf-analysis.c +3 −1
.DS_Store+0−0

Binary file not shown.

LEAF/.DS_Store+0−0

Binary file not shown.

LEAF/Src/leaf-analysis.c+3−1
@@ -113,11 +113,13 @@ void tZeroCrossing_initToPool (tZeroCrossing* const zc, int maxWindowSize, · 112 unmodified lines
113113 z->inBuffer = (float*) mpool_calloc(sizeof(float) * maxWindowSize, m);
114114 z->countBuffer = (uint16_t*) mpool_calloc(sizeof(uint16_t) * maxWindowSize, m);
115115 }
116+
116117 void tZeroCrossing_freeFromPool (tZeroCrossing* const zc, tMempool* const mp)
117118 {
118119 _tMempool* m = *mp;
119120 _tZeroCrossing* z = *zc;
120−
121+ mpool_free(z->inBuffer, m);
122+ mpool_free(z->countBuffer, m);
121123 mpool_free(z, m);
122124 }
123125

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t