Commit 7d70292b 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 919c5ee0
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -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();