mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1002527 - Fix not to initialize remote browser's ContentParent twice. r=bent
ContentParent::GetNewOrUsed() initialize the ContentParent always, even it is an initialized one from PreallocatedProcessManager::Take(). Initialize twice makes ContentParent to receive two the same observed event, and creates leak in both observer list and itself.
This commit is contained in:
parent
7f6456d7b0
commit
faa3bfc0b9
@ -598,9 +598,9 @@ ContentParent::GetNewOrUsed(bool aForBrowserElement)
|
||||
aForBrowserElement,
|
||||
/* isForPreallocated = */ false,
|
||||
PROCESS_PRIORITY_FOREGROUND);
|
||||
p->Init();
|
||||
}
|
||||
|
||||
p->Init();
|
||||
sNonAppContentParents->AppendElement(p);
|
||||
return p.forget();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user