]> git.llucax.com Git - software/eventxx.git/blobdiff - eventxx
Fix a bug when the dispatcher destructor is working.
[software/eventxx.git] / eventxx
diff --git a/eventxx b/eventxx
index 93e2669b8db40173ed41e7daaa01d339f3e1cceb..d2846ec53d804ddf47cae84e26f4c722e8276c18 100644 (file)
--- a/eventxx
+++ b/eventxx
@@ -537,6 +537,8 @@ struct dispatcher
 
 #ifdef EVENT_BASE_FREE_FIX
        ~dispatcher() throw() { event_base_free(_event_base); }
 
 #ifdef EVENT_BASE_FREE_FIX
        ~dispatcher() throw() { event_base_free(_event_base); }
+#else
+#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 -DEVENT_BASE_FREE_FIX to your compiler to make this message disappear and really free the dispatcher memory using event_base_free()."
 #endif
 
        /**
 #endif
 
        /**