Pub/sub fixes

This commit is contained in:
Pavel Kirienko
2014-03-12 13:00:40 +04:00
parent ad3175a235
commit 54f920898d
3 changed files with 9 additions and 4 deletions
@@ -123,7 +123,7 @@ class GenericSubscriber : Noncopyable
message_.setTransfer(&transfer);
const int decode_res = DataSpec::decode(message_, codec);
const int decode_res = DataStruct::decode(message_, codec);
// We don't need the data anymore, the memory can be reused from the callback:
transfer.release();
if (decode_res <= 0)