summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/qpid/HandlerChain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/src/qpid/HandlerChain.h b/cpp/src/qpid/HandlerChain.h
index adeaa96536..e3746ec14b 100644
--- a/cpp/src/qpid/HandlerChain.h
+++ b/cpp/src/qpid/HandlerChain.h
@@ -58,7 +58,7 @@ class HandlerChain {
/** HandlerChain owns the ChainableHandler. */
void push(HandlerAutoPtr h) {
- handlers.push_back(h);
+ handlers.push_back(h.release());
h->setNext(first);
first = h.get();
}