mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-03 04:52:54 +00:00
Fix core dump bug
This commit is contained in:
parent
0a0b15da60
commit
d599286de0
@ -192,12 +192,13 @@ nsFrameImageLoader::AddFrame(nsIFrame* aFrame,
|
||||
pfd->mClosure = aClosure;
|
||||
pfd->mNext = mFrames;
|
||||
mFrames = pfd;
|
||||
if ((NS_IMAGE_LOAD_STATUS_SIZE_AVAILABLE |
|
||||
NS_IMAGE_LOAD_STATUS_ERROR) & mImageLoadStatus) {
|
||||
if (aCallBack &&
|
||||
((NS_IMAGE_LOAD_STATUS_SIZE_AVAILABLE |
|
||||
NS_IMAGE_LOAD_STATUS_ERROR) & mImageLoadStatus)) {
|
||||
// Fire notification callback right away so that caller doesn't
|
||||
// miss it...
|
||||
(*pfd->mCallBack)(mPresContext, this, pfd->mFrame, pfd->mClosure,
|
||||
mImageLoadStatus);
|
||||
(*aCallBack)(mPresContext, this, pfd->mFrame, pfd->mClosure,
|
||||
mImageLoadStatus);
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user