mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-27 23:02:20 +00:00
Bug 1857285 - Free sanitized font data on early-out. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D190409
This commit is contained in:
parent
dd749e7f0b
commit
893dfc633c
@ -686,6 +686,7 @@ bool gfxUserFontEntry::LoadPlatformFont(uint32_t aSrcIndex,
|
||||
RefPtr<gfxUserFontSet> fontSet = GetUserFontSet();
|
||||
if (NS_WARN_IF(!fontSet)) {
|
||||
free((void*)aOriginalFontData);
|
||||
free((void*)aSanitizedFontData);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user