| Index: base/message_pump_libevent.cc
|
| ===================================================================
|
| --- base/message_pump_libevent.cc (revision 107845)
|
| +++ base/message_pump_libevent.cc (working copy)
|
| @@ -11,7 +11,6 @@
|
| #include "base/compiler_specific.h"
|
| #include "base/eintr_wrapper.h"
|
| #include "base/logging.h"
|
| -#include "base/mac/scoped_nsautorelease_pool.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/observer_list.h"
|
| #include "base/time.h"
|
| @@ -21,6 +20,10 @@
|
| #include "third_party/libevent/event.h"
|
| #endif
|
|
|
| +#if defined(OS_MACOSX)
|
| +#include "base/mac/scoped_nsautorelease_pool.h"
|
| +#endif
|
| +
|
| // Lifecycle of struct event
|
| // Libevent uses two main data structures:
|
| // struct event_base (of which there is one per message pump), and
|
| @@ -228,7 +231,9 @@
|
| scoped_ptr<event> timer_event(new event);
|
|
|
| for (;;) {
|
| +#if defined(OS_MACOSX)
|
| mac::ScopedNSAutoreleasePool autorelease_pool;
|
| +#endif
|
|
|
| bool did_work = delegate->DoWork();
|
| if (!keep_running_)
|
|
|