summaryrefslogtreecommitdiff
path: root/vcl/source/gdi
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-08-27 02:32:59 +0200
committerخالد حسني <khaled@aliftype.com>2022-08-27 04:15:48 +0200
commitf5c3a215fdd5505ebba8ae341d2146c3a4f739e3 (patch)
treed0cc09285bf6de83ce65316564de0d4804e9e95e /vcl/source/gdi
parent1581a631464254bbc428649c35b23c79df837ed2 (diff)
vcl: Don’t leak hb_set_t
Looks like I have a habit of never destroying these. Change-Id: I58e77908c68553222e34600aafb6fee186000a0b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138893 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/source/gdi')
-rw-r--r--vcl/source/gdi/CommonSalLayout.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/gdi/CommonSalLayout.cxx b/vcl/source/gdi/CommonSalLayout.cxx
index 81f495afe981..fc28200ff98a 100644
--- a/vcl/source/gdi/CommonSalLayout.cxx
+++ b/vcl/source/gdi/CommonSalLayout.cxx
@@ -68,6 +68,8 @@ GenericSalLayout::GenericSalLayout(LogicalFontInstance &rFont)
GenericSalLayout::~GenericSalLayout()
{
+ if (mpVertGlyphs)
+ hb_set_destroy(mpVertGlyphs);
}
void GenericSalLayout::ParseFeatures(std::u16string_view aName)
@@ -248,6 +250,7 @@ bool GenericSalLayout::HasVerticalAlternate(sal_UCS4 aChar, sal_UCS4 aVariationS
hb_set_union(mpVertGlyphs, pGlyphs);
}
}
+ hb_set_destroy(pLookups);
}
return hb_set_has(mpVertGlyphs, nGlyphIndex) != 0;