diff options
| author | Alan Conway <aconway@apache.org> | 2009-05-11 13:11:42 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2009-05-11 13:11:42 +0000 |
| commit | ec0e348d1d14679f72ce704555dd2605880bddfa (patch) | |
| tree | e5467d155e1e90faad6daa442113bfe94798a14c /cpp/src/qpid/cluster/Decoder.h | |
| parent | ce4375e5a161d38945ee4e863aad6b772e0e9251 (diff) | |
| download | qpid-python-ec0e348d1d14679f72ce704555dd2605880bddfa.tar.gz | |
Fix leak of Decoder map entries.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@773552 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Decoder.h')
| -rw-r--r-- | cpp/src/qpid/cluster/Decoder.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qpid/cluster/Decoder.h b/cpp/src/qpid/cluster/Decoder.h index acde4258a2..3fb7b4f73d 100644 --- a/cpp/src/qpid/cluster/Decoder.h +++ b/cpp/src/qpid/cluster/Decoder.h @@ -24,6 +24,7 @@ #include "types.h" #include "qpid/framing/FrameDecoder.h" +#include "qpid/sys/Mutex.h" #include <boost/function.hpp> #include <map> @@ -48,6 +49,7 @@ class Decoder private: typedef std::map<ConnectionId, framing::FrameDecoder> Map; + sys::Mutex lock; Map map; void process(const EventFrame&); FrameHandler callback; |
