Commit 6e79011b authored by sletz's avatar sletz
Browse files

Cleanup buffers in NetJack2 code.

git-svn-id: http://subversion.jackaudio.org/jack/jack2/trunk/jackmp@4634 0c269be4-1314-0410-8aa9-9f06e86f4224
parent d5db82ac
......@@ -552,6 +552,7 @@ namespace Jack
fCompressedBuffer = new unsigned char* [fNPorts];
for (int port_index = 0; port_index < fNPorts; port_index++) {
fCompressedBuffer[port_index] = new unsigned char[fCompressedSizeByte];
memset(fCompressedBuffer[port_index], 0, fCompressedSizeByte * sizeof(char));
}
int res1 = (fNPorts * fCompressedSizeByte) % PACKET_AVAILABLE_SIZE(params);
......@@ -717,6 +718,7 @@ namespace Jack
fIntBuffer = new short* [fNPorts];
for (int port_index = 0; port_index < fNPorts; port_index++) {
fIntBuffer[port_index] = new short[fPeriodSize];
memset(fIntBuffer[port_index], 0, fPeriodSize * sizeof(short));
}
int res1 = (fNPorts * fCompressedSizeByte) % PACKET_AVAILABLE_SIZE(params);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment