Commit 7058c546 authored by reza.ebrahimi's avatar reza.ebrahimi

apply a change to LIBZMQ_DELETE macro (related to issue #1524)

parent 1621c25e
......@@ -503,9 +503,10 @@ ZMQ_EXPORT void zmq_threadclose (void* thread);
/******************************************************************************/
#define ZMQ_UNUSED(object) (void)object
#define LIBZMQ_DELETE(p_object) \
#define LIBZMQ_DELETE(p_object) {\
delete p_object; \
p_object = 0;
p_object = 0; \
}
#undef ZMQ_EXPORT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment