mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1019934 - don't access mRefCnt after CacheFileChunk::DispatchRelease() has been called, r=michal
This commit is contained in:
parent
b1feb7e13a
commit
98973a62fd
@ -63,13 +63,14 @@ NS_IMPL_ADDREF(CacheFileChunk)
|
||||
NS_IMETHODIMP_(MozExternalRefCountType)
|
||||
CacheFileChunk::Release()
|
||||
{
|
||||
nsrefcnt count = mRefCnt - 1;
|
||||
if (DispatchRelease()) {
|
||||
// Redispatched to the main thread.
|
||||
return mRefCnt - 1;
|
||||
return count;
|
||||
}
|
||||
|
||||
NS_PRECONDITION(0 != mRefCnt, "dup release");
|
||||
nsrefcnt count = --mRefCnt;
|
||||
count = --mRefCnt;
|
||||
NS_LOG_RELEASE(this, count, "CacheFileChunk");
|
||||
|
||||
if (0 == count) {
|
||||
|
Loading…
Reference in New Issue
Block a user