Index: base/message_pump_libevent.cc |
diff --git a/base/message_pump_libevent.cc b/base/message_pump_libevent.cc |
index c2390b46c8b7cbed638a561136ba37032bf813e0..ff4a04a443cb8cfc628eb1e2eb04d3c97e0b9266 100644 |
--- a/base/message_pump_libevent.cc |
+++ b/base/message_pump_libevent.cc |
@@ -160,10 +160,14 @@ MessagePumpLibevent::~MessagePumpLibevent() { |
DCHECK(event_base_); |
event_del(wakeup_event_); |
delete wakeup_event_; |
- if (wakeup_pipe_in_ >= 0) |
- HANDLE_EINTR(close(wakeup_pipe_in_)); |
- if (wakeup_pipe_out_ >= 0) |
- HANDLE_EINTR(close(wakeup_pipe_out_)); |
+ if (wakeup_pipe_in_ >= 0) { |
+ if (HANDLE_EINTR(close(wakeup_pipe_in_)) < 0) |
+ PLOG(ERROR) << "close"; |
+ } |
+ if (wakeup_pipe_out_ >= 0) { |
+ if (HANDLE_EINTR(close(wakeup_pipe_out_)) < 0) |
+ PLOG(ERROR) << "close"; |
+ } |
event_base_free(event_base_); |
} |