Kaydet (Commit) 3220ada5 authored tarafından Caolán McNamara's avatar Caolán McNamara

Revert "Blind attempt to fix UBSAN error in FreetypeFont"

to see if this is still a problem after 'fix dubious cache comparison check'

This reverts commit b0be0d41.

Change-Id: I253a67c3aa5f8daf0e8cd586a5089e554e48f355
Reviewed-on: https://gerrit.libreoffice.org/55185Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 18a8cac5
......@@ -357,11 +357,18 @@ void FreetypeFontInstance::SetFreetypeFont(FreetypeFont* p)
{
if (p == mpFreetypeFont)
return;
if (mpFreetypeFont)
mpFreetypeFont->Release();
mpFreetypeFont = p;
if (mpFreetypeFont)
mpFreetypeFont->AddRef();
}
FreetypeFontInstance::~FreetypeFontInstance()
{
// TODO: remove the FreetypeFont here instead of in the GlyphCache
if (mpFreetypeFont)
mpFreetypeFont->Release();
}
static hb_blob_t* getFontTable(hb_face_t* /*face*/, hb_tag_t nTableTag, void* pUserData)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment