[DOM] Fix double-free crash in MessagePort.cpp

This commit is contained in:
Moonchild 2023-12-10 17:02:28 +01:00 committed by roytam1
commit eba87b03fd

View file

@ -375,7 +375,6 @@ MessagePort::Initialize(const nsID& aUUID,
nsAutoPtr<WorkerHolder> workerHolder(new MessagePortWorkerHolder(this));
if (NS_WARN_IF(!workerHolder->HoldWorker(workerPrivate, Closing))) {
CloseForced();
aRv.Throw(NS_ERROR_FAILURE);
return;
}