diff --git a/src/protocol/ProtocolMessage.h b/src/protocol/ProtocolMessage.h index d0ca9431..0366a527 100644 --- a/src/protocol/ProtocolMessage.h +++ b/src/protocol/ProtocolMessage.h @@ -101,6 +101,7 @@ public: { this->size_limit = msg.size_limit; msg.size_limit = (size_t)-1; + delete this->attachment; this->attachment = msg.attachment; msg.attachment = NULL; }