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

Unified Diff: base/message_pump_libevent.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/message_pump_default.cc ('k') | base/message_pump_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « base/message_pump_default.cc ('k') | base/message_pump_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698