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

Unified Diff: base/message_pump_default.cc

Issue 3805: autorelease message pumps (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 months 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 | « base/build/base.vcproj ('k') | base/message_pump_libevent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « base/build/base.vcproj ('k') | base/message_pump_libevent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698