Index: base/message_pump_default.cc |
=================================================================== |
--- base/message_pump_default.cc (revision 2601) |
+++ base/message_pump_default.cc (working copy) |
@@ -5,6 +5,7 @@ |
#include "base/message_pump_default.h" |
#include "base/logging.h" |
+#include "base/scoped_nsautorelease_pool.h" |
namespace base { |
@@ -17,6 +18,8 @@ |
DCHECK(keep_running_) << "Quit must have been called outside of Run!"; |
for (;;) { |
+ ScopedNSAutoreleasePool autorelease_pool; |
+ |
bool did_work = delegate->DoWork(); |
if (!keep_running_) |
break; |