mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +09:00
Issue #1118 - Part 9: Don't allow reuse of unlinked CallbackObjectHolder.
This commit is contained in:
parent
f255a1e606
commit
4103320dde
1 changed files with 2 additions and 1 deletions
|
|
@ -514,8 +514,9 @@ private:
|
|||
{
|
||||
// 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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue