mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 721315 - clear the faces' mFamily pointers when a font family is deleted. r=jdaggett
This commit is contained in:
parent
72cdfcf8c3
commit
dd425a16eb
@ -512,7 +512,18 @@ public:
|
||||
mIsBadUnderlineFamily(false)
|
||||
{ }
|
||||
|
||||
virtual ~gfxFontFamily() { }
|
||||
virtual ~gfxFontFamily() {
|
||||
// clear Family pointers in our faces; the font entries might stay
|
||||
// alive due to cached font objects, but they can no longer refer
|
||||
// to their families.
|
||||
PRUint32 i = mAvailableFonts.Length();
|
||||
while (i) {
|
||||
gfxFontEntry *fe = mAvailableFonts[--i];
|
||||
if (fe) {
|
||||
fe->SetFamily(nsnull);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const nsString& Name() { return mName; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user