From 7058c5467228cedd2fe7e218b1ae3fb6d28320d7 Mon Sep 17 00:00:00 2001 From: "reza.ebrahimi" Date: Mon, 17 Aug 2015 01:00:55 +0430 Subject: [PATCH] apply a change to LIBZMQ_DELETE macro (related to issue #1524) --- include/zmq.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/include/zmq.h b/include/zmq.h index 1b108d5b..7fa5c3a8 100644 --- a/include/zmq.h +++ b/include/zmq.h @@ -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