Fun with ByteBuf reference counting.
Merge pull request #1 from zzglitch/master

Fun with ByteBuf reference counting.