diff options
-rw-r--r-- | base/message_pump_libevent.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/message_pump_libevent.cc b/base/message_pump_libevent.cc index 0055d68..0b849c5 100644 --- a/base/message_pump_libevent.cc +++ b/base/message_pump_libevent.cc @@ -112,6 +112,10 @@ MessagePumpLibevent::~MessagePumpLibevent() { DCHECK(event_base_); event_del(wakeup_event_); delete wakeup_event_; + if (wakeup_pipe_in_ >= 0) + close(wakeup_pipe_in_); + if (wakeup_pipe_out_ >= 0) + close(wakeup_pipe_out_); event_base_free(event_base_); } |