diff options
author | frsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731> | 2009-02-15 09:09:58 +0000 |
---|---|---|
committer | frsyuki <frsyuki@5a5092ae-2292-43ba-b2d5-dcab9c1a2731> | 2009-02-15 09:09:58 +0000 |
commit | 1ad04b22d8d3e5267ceec7fc1527651ee0eb0ffe (patch) | |
tree | 32306ccc1f374c72440de881b928df9e945bd99f /cpp/unpack.cpp | |
parent | 921b0ff62ec99e9339d6cfaa6ba724ae7bb5f9ce (diff) | |
download | msgpack-python-1ad04b22d8d3e5267ceec7fc1527651ee0eb0ffe.tar.gz |
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
Diffstat (limited to 'cpp/unpack.cpp')
-rw-r--r-- | cpp/unpack.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/unpack.cpp b/cpp/unpack.cpp index ce39afd..cbf1356 100644 --- a/cpp/unpack.cpp +++ b/cpp/unpack.cpp @@ -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(); } |