git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47473
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// the caller should delete the returned pointer
static wxEpollDispatcher *Create();
+ virtual ~wxEpollDispatcher();
+
// implement base class pure virtual methods
virtual bool RegisterFD(int fd, wxFDIOHandler* handler, int flags = wxFDIO_ALL);
virtual bool ModifyFD(int fd, wxFDIOHandler* handler, int flags = wxFDIO_ALL);
m_epollDescriptor = epollDescriptor;
}
+wxEpollDispatcher::~wxEpollDispatcher()
+{
+ if ( close(m_epollDescriptor) != 0 )
+ {
+ wxLogSysError(_("Error closing epoll descriptor"));
+ }
+}
+
bool wxEpollDispatcher::RegisterFD(int fd, wxFDIOHandler* handler, int flags)
{
epoll_event ev;