зеркало из https://github.com/mozilla/pjs.git
Fix potential leak. r=attinasi a=waterson
This commit is contained in:
Родитель
c01b4e980e
Коммит
870692e46a
|
@ -1270,6 +1270,7 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
|
|||
if (NS_SUCCEEDED(result) && equals)
|
||||
{
|
||||
mPendingAlternateSheets.RemoveElementAt(index);
|
||||
NS_IF_RELEASE(loadingData->mNext);
|
||||
loadingData->mNext = data;
|
||||
loadingData = data;
|
||||
}
|
||||
|
|
|
@ -1270,6 +1270,7 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
|
|||
if (NS_SUCCEEDED(result) && equals)
|
||||
{
|
||||
mPendingAlternateSheets.RemoveElementAt(index);
|
||||
NS_IF_RELEASE(loadingData->mNext);
|
||||
loadingData->mNext = data;
|
||||
loadingData = data;
|
||||
}
|
||||
|
|
|
@ -1270,6 +1270,7 @@ CSSLoaderImpl::LoadSheet(URLKey& aKey, SheetLoadData* aData)
|
|||
if (NS_SUCCEEDED(result) && equals)
|
||||
{
|
||||
mPendingAlternateSheets.RemoveElementAt(index);
|
||||
NS_IF_RELEASE(loadingData->mNext);
|
||||
loadingData->mNext = data;
|
||||
loadingData = data;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче