Fix assertion from bug 211470, rs=bz

This commit is contained in:
bsmedberg%covad.net 2003-07-28 01:12:36 +00:00
Родитель b98233a1fb
Коммит 01ee486155
2 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -260,7 +260,8 @@ CSSLoaderImpl::DropDocumentReference(void)
// Flush out pending datas just so we don't leak by accident. These
// loads should short-circuit through the mDocument check in
// LoadSheet and just end up in SheetComplete immediately
mPendingDatas.Enumerate(StartAlternateLoads, this);
if (mPendingDatas.IsInitialized())
mPendingDatas.Enumerate(StartAlternateLoads, this);
return NS_OK;
}

Просмотреть файл

@ -260,7 +260,8 @@ CSSLoaderImpl::DropDocumentReference(void)
// Flush out pending datas just so we don't leak by accident. These
// loads should short-circuit through the mDocument check in
// LoadSheet and just end up in SheetComplete immediately
mPendingDatas.Enumerate(StartAlternateLoads, this);
if (mPendingDatas.IsInitialized())
mPendingDatas.Enumerate(StartAlternateLoads, this);
return NS_OK;
}