summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/src/qpid/HandlerChain.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/src/qpid/HandlerChain.h b/qpid/cpp/src/qpid/HandlerChain.h
index adeaa96536..e3746ec14b 100644
--- a/qpid/cpp/src/qpid/HandlerChain.h
+++ b/qpid/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();
}