From 9a0b2c897039b6fa35287e065b3803104b622ac2 Mon Sep 17 00:00:00 2001 From: Ian Barber Date: Wed, 29 May 2013 21:58:20 +0100 Subject: [PATCH] Pieter's change to fix memory leak on mechanism --- src/stream_engine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index a9eb1129..82d2b299 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -133,6 +133,8 @@ zmq::stream_engine_t::~stream_engine_t () delete encoder; if (decoder != NULL) delete decoder; + if (mechanism != NULL) + delete mechanism; } void zmq::stream_engine_t::plug (io_thread_t *io_thread_,