зеркало из https://github.com/mozilla/gecko-dev.git
Make sure not to access members of deleted SheetLoadDatas. Bug 308766, r+sr=jst
This commit is contained in:
Родитель
71c092caac
Коммит
b8cf83ad82
|
@ -1831,12 +1831,16 @@ CSSLoaderImpl::LoadChildSheet(nsICSSStyleSheet* aParentSheet,
|
|||
}
|
||||
|
||||
NS_ADDREF(data);
|
||||
PRBool syncLoad = data->mSyncLoad;
|
||||
|
||||
// Load completion will release the data
|
||||
rv = LoadSheet(data, state);
|
||||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
// If syncLoad is true, |data| will be deleted by now.
|
||||
if (!syncLoad) {
|
||||
data->mMustNotify = PR_TRUE;
|
||||
}
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче