X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/30c45bdd06c4174d28f62133692733d447d008ea..806ad819585655ac1c35427409611d7795d0b910:/include/wx/private/selectdispatcher.h diff --git a/include/wx/private/selectdispatcher.h b/include/wx/private/selectdispatcher.h index 04072c1be1..f174d1461f 100644 --- a/include/wx/private/selectdispatcher.h +++ b/include/wx/private/selectdispatcher.h @@ -30,6 +30,9 @@ public: // called when there is exception on descriptor virtual void OnExceptionWaiting(int fd) = 0; + + // virtual dtor for the base class + virtual ~wxFDIOHandler() { } }; // those flags describes sets where descriptor should be added @@ -72,7 +75,7 @@ public: void RunLoop(int timeout = wxSELECT_TIMEOUT_INFINITE); protected: - wxSelectDispatcher() { } + wxSelectDispatcher() { m_maxFD = -1; } private: void ProcessSets(fd_set* readset, fd_set* writeset, fd_set* exeptset, int max_fd);