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
|
|
@ -45,12 +45,28 @@ RefMessageBodyService::RefMessageBodyService(
|
|||
MOZ_DIAGNOSTIC_ASSERT(sService == nullptr);
|
||||
}
|
||||
|
||||
RefMessageBodyService::~RefMessageBodyService() {
|
||||
MozExternalRefCountType RefMessageBodyService::AddRef() {
|
||||
MOZ_ASSERT(int32_t(mRefCnt) >= 0, "illegal refcnt");
|
||||
nsrefcnt cnt = ++mRefCnt;
|
||||
NS_LOG_ADDREF(this, cnt, "RefMessageBodyService", sizeof(*this));
|
||||
return cnt;
|
||||
}
|
||||
|
||||
MozExternalRefCountType RefMessageBodyService::Release() {
|
||||
StaticMutexAutoLock lock(sRefMessageBodyServiceMutex);
|
||||
nsrefcnt cnt = --mRefCnt;
|
||||
NS_LOG_RELEASE(this, cnt, "RefMessageBodyService");
|
||||
if (cnt > 0) {
|
||||
return cnt;
|
||||
}
|
||||
MOZ_DIAGNOSTIC_ASSERT(sService == this);
|
||||
sService = nullptr;
|
||||
delete this;
|
||||
return 0;
|
||||
}
|
||||
|
||||
RefMessageBodyService::~RefMessageBodyService() = default;
|
||||
|
||||
const nsID RefMessageBodyService::Register(
|
||||
already_AddRefed<RefMessageBody> aBody, ErrorResult& aRv) {
|
||||
RefPtr<RefMessageBody> body = aBody;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue