mirror of
https://github.com/msgpack/msgpack-c.git
synced 2026-01-13 02:52:42 +01:00
lang/c/msgpack: divide pack_raw() into pack_raw() and pack_raw_body()
git-svn-id: file:///Users/frsyuki/project/msgpack-git/svn/x@74 5a5092ae-2292-43ba-b2d5-dcab9c1a2731
This commit is contained in:
@@ -257,7 +257,7 @@ zone* unpacker::release_zone()
|
||||
throw;
|
||||
}
|
||||
}
|
||||
m_ctx->user(&*m_zone);
|
||||
m_ctx->user(m_zone.get());
|
||||
return old.release();
|
||||
}
|
||||
|
||||
@@ -268,7 +268,7 @@ object unpacker::data()
|
||||
|
||||
void unpacker::reset()
|
||||
{
|
||||
if(m_off != 0) { std::auto_ptr<zone> old(release_zone()); }
|
||||
if(m_off != 0) { delete release_zone(); }
|
||||
m_ctx->reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user