X-Git-Url: https://git.llucax.com/software/eventxx.git/blobdiff_plain/c91910cd7cf9a0fab1b015b67bc70e7468b9fa50..868ab76df09c012534e12b21543affdb14ffea4e:/eventxx?ds=inline diff --git a/eventxx b/eventxx index e2391b5..2ee228d 100644 --- a/eventxx +++ b/eventxx @@ -795,11 +795,13 @@ struct dispatcher /// Free dispatcher resources, see @ref Status section for details. ~dispatcher() throw() { event_base_free(_event_base); } #else +#ifndef EVENTXX_NO_WARNING #warning "The dispatcher class *will* leak memory because of a libevent bug, " \ "see http://www.mail-archive.com/libevent-users@monkey.org/msg00110.html " \ "for more info an a patch. If you already have this patch, please " \ "-DEVENTXX_EVENT_BASE_FREE_FIX to your compiler to make this message disappear " \ "and really free the dispatcher memory using event_base_free()." +#endif #endif /**