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
34490cb6be
commit
c4938d1cf0
@ -598,9 +598,9 @@ ContentParent::GetNewOrUsed(bool aForBrowserElement)
|
|||||||
aForBrowserElement,
|
aForBrowserElement,
|
||||||
/* isForPreallocated = */ false,
|
/* isForPreallocated = */ false,
|
||||||
PROCESS_PRIORITY_FOREGROUND);
|
PROCESS_PRIORITY_FOREGROUND);
|
||||||
|
p->Init();
|
||||||
}
|
}
|
||||||
|
|
||||||
p->Init();
|
|
||||||
sNonAppContentParents->AppendElement(p);
|
sNonAppContentParents->AppendElement(p);
|
||||||
return p.forget();
|
return p.forget();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user