Skip to content
Snippets Groups Projects
Commit 0d9e9448 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Fix memory leak on LfpViewer

parent a04a8785
Branches
Tags
No related merge requests found
......@@ -33,7 +33,7 @@ LfpDisplayNode::LfpDisplayNode()
//std::cout << " LFPDisplayNodeConstructor" << std::endl;
displayBuffer = new AudioSampleBuffer(8, 100);
arrayOfOnes = new float[5000];
arrayOfOnes.malloc(5000);
for (int n = 0; n < 5000; n++)
{
......
......@@ -99,7 +99,7 @@ private:
int64 bufferTimestamp;
std::map<int, int> ttlState;
float* arrayOfOnes;
HeapBlock<float> arrayOfOnes;
int totalSamples;
bool resizeBuffer();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment