X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fio%2Fpoll.cpp;h=a58090792fcb06cf9c4a2a9049159ac7324524a8;hp=9697ebfc3aa2094225325ea0aebcadb75d19953d;hb=b4806214e905752617691f851717033fd3f266c2;hpb=d16185720fa344263367dbd50c61bfc8183d99a4 diff --git a/source/io/poll.cpp b/source/io/poll.cpp index 9697ebf..a580907 100644 --- a/source/io/poll.cpp +++ b/source/io/poll.cpp @@ -5,7 +5,6 @@ #endif #include #include -#include #include "eventobject.h" #include "handle.h" #include "handle_private.h" @@ -18,7 +17,7 @@ namespace { using namespace Msp; using namespace Msp::IO; -inline int sys_poll_event(PollEvent event) +inline short int sys_poll_event(PollEvent event) { int result = 0; @@ -107,6 +106,11 @@ Poller::Poller(): objs_changed(false) { } +Poller::~Poller() +{ + delete priv; +} + void Poller::set_object(EventObject &obj, PollEvent ev) { // Verify that the object has an event handle