Fix a bug that CompositeByteBuf.touch() does nothing

This commit is contained in:
Trustin Lee 2014-02-06 21:00:05 -08:00
parent c01f08d306
commit b4e3e09b76

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