Skip to content
Snippets Groups Projects
Commit 92e5f593 authored by Andreas Pehrson's avatar Andreas Pehrson
Browse files

Bug 1826530 - From the Windows MessagePumpForNonMainUIThreads remove use of...

Bug 1826530 - From the Windows MessagePumpForNonMainUIThreads remove use of NSAutoReleasePool. r=ipc-reviewers,nika

Differential Revision: https://phabricator.services.mozilla.com/D175145
parent 78cd1b24
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,6 @@
#include "MessagePump.h"
#include "base/scoped_nsautorelease_pool.h"
using namespace mozilla::ipc;
NS_IMPL_ADDREF_INHERITED(MessagePumpForNonMainUIThreads, MessagePump)
......@@ -36,10 +34,7 @@ void MessagePumpForNonMainUIThreads::DoRunLoop() {
MOZ_ASSERT(ti);
ti->SetObserver(this);
base::ScopedNSAutoreleasePool autoReleasePool;
for (;;) {
autoReleasePool.Recycle();
bool didWork = NS_ProcessNextEvent(thread, false);
didWork |= ProcessNextWindowsMessage();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment