[#1728] Recycle list after done with it in ReplayingDecoder/ByteToMessageDecoder channelInactive(..)

This commit is contained in:
Norman Maurer 2013-08-11 21:04:55 +02:00
parent 9f88552f12
commit 9a88c50ffb
2 changed files with 2 additions and 0 deletions

View File

@ -212,6 +212,7 @@ public abstract class ByteToMessageDecoder extends ChannelInboundHandlerAdapter
ctx.fireChannelRead(out.get(i)); ctx.fireChannelRead(out.get(i));
} }
ctx.fireChannelInactive(); ctx.fireChannelInactive();
out.recycle();
} }
} }

View File

@ -345,6 +345,7 @@ public abstract class ReplayingDecoder<S> extends ByteToMessageDecoder {
ctx.fireChannelRead(out.get(i)); ctx.fireChannelRead(out.get(i));
} }
ctx.fireChannelInactive(); ctx.fireChannelInactive();
out.recycle();
} }
} }