delete eSocketNotifiers isnt allowed...
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 29 Oct 2008 21:46:13 +0000 (21:46 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 29 Oct 2008 21:46:13 +0000 (21:46 +0000)
please call ->AddRef() after eSocketNotifier::create ... and ->Release()
when the eSocketNotifier is no more needed... or use ePtr<eSocketNotifier>

lib/base/ebase.h

index cb676d0..9c524ae 100644 (file)
@@ -155,6 +155,7 @@ private:
        int requested;          // requested events (POLLIN, ...)
        void activate(int what) { /*emit*/ activated(what); }
        eSocketNotifier(eMainloop *context, int fd, int req, bool startnow);
+       void operator delete(void *pmem) { ::operator delete(pmem); }
 public:
        /**
         * \brief Constructs a eSocketNotifier.