зеркало из https://github.com/mozilla/pjs.git
Set mFace to null after calling FT_Done_Face. b=355059 r+sr=roc
This commit is contained in:
Родитель
49850df6a2
Коммит
1c8f5d3990
|
@ -1043,8 +1043,10 @@ nsFontPSXft::Init(nsXftEntry* aEntry,
|
|||
|
||||
nsFontPSXft::~nsFontPSXft()
|
||||
{
|
||||
if (mEntry->mFace)
|
||||
if (mEntry->mFace) {
|
||||
FT_Done_Face(mEntry->mFace);
|
||||
mEntry->mFace = nsnull;
|
||||
}
|
||||
|
||||
if (FT_Done_FreeType(mFreeTypeLibrary))
|
||||
return;
|
||||
|
@ -2335,8 +2337,10 @@ nsXftType1Generator::Init(nsXftEntry* aEntry)
|
|||
|
||||
nsXftType1Generator::~nsXftType1Generator()
|
||||
{
|
||||
if (mEntry->mFace)
|
||||
if (mEntry->mFace) {
|
||||
FT_Done_Face(mEntry->mFace);
|
||||
mEntry->mFace = nsnull;
|
||||
}
|
||||
|
||||
if (FT_Done_FreeType(mFreeTypeLibrary))
|
||||
return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче