]> git.tdb.fi Git - libs/core.git/commitdiff
Fix a memory leak in Poller
authorMikko Rasa <tdb@tdb.fi>
Sat, 20 Apr 2013 13:07:52 +0000 (16:07 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 20 Apr 2013 13:07:52 +0000 (16:07 +0300)
source/io/poll.cpp
source/io/poll.h

index fb5c62fcbf1737f23e556d169f59d5652f00c2db..e8c5804b3576a2f4c42aa5c3122e1ed490e09f7f 100644 (file)
@@ -107,6 +107,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
index 78e6088f8bfe0f5289864550136cedab5154df84..d7823aa9108d8d16bd856fd2fbb4b35f41ac04fa 100644 (file)
@@ -54,6 +54,7 @@ private:
 
 public:
        Poller();
+       ~Poller();
 
        void set_object(EventObject &, PollEvent);
        int poll();