Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1424)

Unified Diff: runtime/bin/eventhandler_macos.cc

Issue 8659032: Fix memory leak in MacOS process handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/bin/eventhandler_win.cc » ('j') | runtime/bin/process_linux.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/eventhandler_macos.cc
diff --git a/runtime/bin/eventhandler_macos.cc b/runtime/bin/eventhandler_macos.cc
index b2c2c9b039c6167f7cb6668a5993453958a2e04a..23a65db964506bfb6c0bba21f9042c70afb76dbd 100644
--- a/runtime/bin/eventhandler_macos.cc
+++ b/runtime/bin/eventhandler_macos.cc
@@ -200,10 +200,8 @@ static void PrintEventMask(struct pollfd* pollfd) {
if ((pollfd->revents & POLLOUT) != 0) printf("POLLOUT ");
if ((pollfd->revents & POLLERR) != 0) printf("POLLERR ");
if ((pollfd->revents & POLLHUP) != 0) printf("POLLHUP ");
- if ((pollfd->revents & POLLRDHUP) != 0) printf("POLLRDHUP ");
if ((pollfd->revents & POLLNVAL) != 0) printf("POLLNVAL ");
- int all_events = POLLIN | POLLPRI | POLLOUT |
- POLLERR | POLLHUP | POLLRDHUP | POLLNVAL;
+ int all_events = POLLIN | POLLPRI | POLLOUT | POLLERR | POLLHUP | POLLNVAL;
if ((pollfd->revents & ~all_events) != 0) {
printf("(and %08x) ", pollfd->revents & ~all_events);
}
« no previous file with comments | « no previous file | runtime/bin/eventhandler_win.cc » ('j') | runtime/bin/process_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698