Bug 1153628 - Break FontFaceSet <-> UserFontSet cycle when a document's pres shell is going away. r=mccr8

This commit is contained in:
Cameron McCormack 2015-04-15 09:40:12 +10:00
parent 2ec6115dfd
commit bcea50a7fe

View File

@ -412,6 +412,9 @@ FontFaceSet::DestroyUserFontSet()
mNonRuleFaces.Clear();
mUnavailableFaces.Clear();
mReady = nullptr;
if (mUserFontSet) {
mUserFontSet->mFontFaceSet = nullptr;
}
mUserFontSet = nullptr;
}