mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 17:47:34 +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
|
// NS_IF_RELEASE because we might have been unlinked before
|
||||||
nsISupports* ptr = GetISupports();
|
nsISupports* ptr = GetISupports();
|
||||||
NS_IF_RELEASE(ptr);
|
// Clear mPtrBits before the release to prevent reentrance.
|
||||||
mPtrBits = 0;
|
mPtrBits = 0;
|
||||||
|
NS_IF_RELEASE(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
uintptr_t mPtrBits;
|
uintptr_t mPtrBits;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue