Fix a bug that CompositeByteBuf.touch() does nothing

This commit is contained in:
Trustin Lee 2014-02-06 21:00:05 -08:00
parent 8837afddf8
commit 51349352e2
1 changed files with 8 additions and 2 deletions

View File

@ -1572,12 +1572,18 @@ public class CompositeByteBuf extends AbstractReferenceCountedByteBuf {
@Override
public CompositeByteBuf touch() {
return (CompositeByteBuf) super.touch();
if (leak != null) {
leak.record();
}
return this;
}
@Override
public CompositeByteBuf touch(Object hint) {
return (CompositeByteBuf) super.touch(hint);
if (leak != null) {
leak.record(hint);
}
return this;
}
@Override