summaryrefslogtreecommitdiff
path: root/cpp/unpack.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/unpack.cpp')
-rw-r--r--cpp/unpack.cpp4
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();
}