Do not allow suspendIntermediaryDeallocations() after free()

This commit is contained in:
Trustin Lee 2012-12-14 18:38:28 +09:00
parent 96dc3f983f
commit 5ffb495746

View File

@ -119,6 +119,7 @@ abstract class PooledByteBuf<T> extends AbstractByteBuf implements Unsafe {
@Override
public void suspendIntermediaryDeallocations() {
assert !isFreed();
if (suspendedDeallocations == null) {
suspendedDeallocations = new ArrayDeque<Allocation<T>>(2);
}