зеркало из https://github.com/mozilla/gecko-dev.git
Fix bug 323028 -- don't set our mRequest until after the clone is done. r+sr=dbaron
This commit is contained in:
Родитель
36b12202c3
Коммит
b4a900ee54
|
@ -123,7 +123,13 @@ nsImageLoader::Load(imgIRequest *aImage)
|
|||
mRequest = nsnull;
|
||||
}
|
||||
|
||||
return aImage->Clone(this, getter_AddRefs(mRequest));
|
||||
// Make sure to clone into a temporary, then set mRequest, since
|
||||
// cloning may notify and we don't want to trigger paints from this
|
||||
// code.
|
||||
nsCOMPtr<imgIRequest> newRequest;
|
||||
nsresult rv = aImage->Clone(this, getter_AddRefs(newRequest));
|
||||
mRequest.swap(newRequest);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче