LzmaFrameEncoderTest double release

Motivation:
2c78902ebc ensured buffers were released in the general case but didn't clean up an extra release in LzmaFrameEncoderTest#testCompressionOfBatchedFlowOfData which lead to a double release.

Modifications:
LzmaFrameEncoderTest#testCompressionOfBatchedFlowOfData should not explicitly release the buffer because decompress will release the buffer

Result:
No more reference count exception and failed test.
This commit is contained in:
Scott Mitchell 2016-11-16 09:55:38 -08:00
parent 86bbf242b4
commit e7631867d3

View File

@ -69,7 +69,6 @@ public class LzmaFrameEncoderTest extends AbstractEncoderTest {
while ((msg = channel.readOutbound()) != null) {
ByteBuf decompressedMsg = decompress(msg, originalLengths.get(i++));
decompressed.addComponent(true, decompressedMsg);
msg.release();
}
assertEquals(originalLengths.size(), i);
assertEquals(data, decompressed);