diff --git a/src/messages/data.hpp b/src/messages/data.hpp index 05949aec28..2848e522bd 100644 --- a/src/messages/data.hpp +++ b/src/messages/data.hpp @@ -229,6 +229,7 @@ private: //s->m_pool->recycle(ptr(const_cast(s))); } else if (count == 0) { + lock.unlock(); boost::checked_delete(static_cast(s)); } }