зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1544670, don't let one to reuse unlinked CallbackObjectHolder, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D27732 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
0b4d03afbc
Коммит
779ae5beb3
|
@ -525,8 +525,9 @@ class CallbackObjectHolder : CallbackObjectHolderBase {
|
|||
void UnlinkSelf() {
|
||||
// NS_IF_RELEASE because we might have been unlinked before
|
||||
nsISupports* ptr = GetISupports();
|
||||
NS_IF_RELEASE(ptr);
|
||||
// Clear mPtrBits before the release to prevent reentrance.
|
||||
mPtrBits = 0;
|
||||
NS_IF_RELEASE(ptr);
|
||||
}
|
||||
|
||||
uintptr_t mPtrBits;
|
||||
|
|
Загрузка…
Ссылка в новой задаче