icecat: add release icecat-140.10.1-1gnu1 for ecne
This commit is contained in:
parent
a5f93cb214
commit
ff85d7c623
1256 changed files with 63469 additions and 24141 deletions
|
|
@ -29,20 +29,20 @@ NS_IMPL_ADDREF(WebSocketChannelChild)
|
|||
|
||||
NS_IMETHODIMP_(MozExternalRefCountType) WebSocketChannelChild::Release() {
|
||||
MOZ_ASSERT(0 != mRefCnt, "dup release");
|
||||
--mRefCnt;
|
||||
nsrefcnt count = --mRefCnt;
|
||||
NS_LOG_RELEASE(this, mRefCnt, "WebSocketChannelChild");
|
||||
|
||||
if (mRefCnt == 1) {
|
||||
if (count == 1) {
|
||||
MaybeReleaseIPCObject();
|
||||
return mRefCnt;
|
||||
}
|
||||
|
||||
if (mRefCnt == 0) {
|
||||
if (count == 0) {
|
||||
mRefCnt = 1; /* stabilize */
|
||||
delete this;
|
||||
return 0;
|
||||
}
|
||||
return mRefCnt;
|
||||
return count;
|
||||
}
|
||||
|
||||
NS_INTERFACE_MAP_BEGIN(WebSocketChannelChild)
|
||||
|
|
@ -95,15 +95,6 @@ void WebSocketChannelChild::ReleaseIPDLReference() {
|
|||
}
|
||||
|
||||
void WebSocketChannelChild::MaybeReleaseIPCObject() {
|
||||
{
|
||||
MutexAutoLock lock(mMutex);
|
||||
if (mIPCState != Opened) {
|
||||
return;
|
||||
}
|
||||
|
||||
mIPCState = Closing;
|
||||
}
|
||||
|
||||
if (!NS_IsMainThread()) {
|
||||
nsCOMPtr<nsIEventTarget> target = GetNeckoTarget();
|
||||
MOZ_ALWAYS_SUCCEEDS(target->Dispatch(
|
||||
|
|
@ -113,6 +104,15 @@ void WebSocketChannelChild::MaybeReleaseIPCObject() {
|
|||
return;
|
||||
}
|
||||
|
||||
{
|
||||
MutexAutoLock lock(mMutex);
|
||||
if (mIPCState != Opened) {
|
||||
return;
|
||||
}
|
||||
|
||||
mIPCState = Closing;
|
||||
}
|
||||
|
||||
SendDeleteSelf();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue