Index: base/message_pump_libevent.cc |
=================================================================== |
--- base/message_pump_libevent.cc (revision 2601) |
+++ base/message_pump_libevent.cc (working copy) |
@@ -4,12 +4,13 @@ |
#include "base/message_pump_libevent.h" |
+#include <fcntl.h> |
+ |
#include "base/logging.h" |
+#include "base/scoped_nsautorelease_pool.h" |
#include "base/time.h" |
#include "third_party/libevent/event.h" |
-#include <fcntl.h> |
- |
namespace base { |
// Return 0 on success |
@@ -112,6 +113,8 @@ |
in_run_ = true; |
for (;;) { |
+ ScopedNSAutoreleasePool autorelease_pool; |
+ |
bool did_work = delegate->DoWork(); |
if (!keep_running_) |
break; |