mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1758132 - Remove NS_ASSERT_OWNINGTHREAD check, r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D140346
This commit is contained in:
parent
1a504cf08b
commit
98b8e2a94c
@ -34,19 +34,9 @@ NS_INTERFACE_MAP_END
|
||||
|
||||
NS_IMETHODIMP_(MozExternalRefCountType) HttpTransactionParent::Release(void) {
|
||||
MOZ_ASSERT(int32_t(mRefCnt) > 0, "dup release");
|
||||
|
||||
if (!::mozilla::ThreadSafeAutoRefCnt::isThreadSafe) {
|
||||
NS_ASSERT_OWNINGTHREAD(HttpTransactionParent);
|
||||
}
|
||||
|
||||
nsrefcnt count = --mRefCnt;
|
||||
NS_LOG_RELEASE(this, count, "HttpTransactionParent");
|
||||
|
||||
if (count == 0) {
|
||||
if (!nsAutoRefCnt::isThreadSafe) {
|
||||
NS_ASSERT_OWNINGTHREAD(HttpTransactionParent);
|
||||
}
|
||||
|
||||
mRefCnt = 1; /* stabilize */
|
||||
delete (this);
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user