Merge pull request #1531 from reza-ebrahimi/master

apply a change to LIBZMQ_DELETE macro (related to issue #1524)
This commit is contained in:
Constantin Rack 2015-08-16 22:54:01 +02:00
commit 87e7ed054b

View File

@ -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