diff options
author | Martin Hosken <martin_hosken@sil.org> | 2011-03-08 11:45:16 +0700 |
---|---|---|
committer | Martin Hosken <martin_hosken@sil.org> | 2011-03-10 22:40:13 +0700 |
commit | 8e1679399097ad30091decd6eff000adc01f8e7e (patch) | |
tree | b1e73ad5bcf52e6b140109c7b314a2671df20667 /vcl/source/glyphs/graphite_features.cxx | |
parent | d83e115bae521fcf193978496d62dbc677a1d6ef (diff) |
Attempt to fix winlayout memory leak
Diffstat (limited to 'vcl/source/glyphs/graphite_features.cxx')
-rw-r--r-- | vcl/source/glyphs/graphite_features.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/vcl/source/glyphs/graphite_features.cxx b/vcl/source/glyphs/graphite_features.cxx index 3be036987865..c5b578f4cc97 100644 --- a/vcl/source/glyphs/graphite_features.cxx +++ b/vcl/source/glyphs/graphite_features.cxx @@ -161,7 +161,7 @@ void GrFeatureParser::setLang(const gr_face * pFace, const rtl::OString & lang) { FeatId aLang; aLang.num = 0; - if (lang.getLength() > 2) + if (lang.getLength() >= 2) { for (sal_Int32 i = 0; i < lang.getLength() && i < 3; i++) { @@ -194,17 +194,13 @@ void GrFeatureParser::setLang(const gr_face * pFace, const rtl::OString & lang) if (i != gr_face_n_languages(pFace)) { if (mpSettings) - { gr_featureval_destroy(mpSettings); - } mpSettings = gr_face_featureval_for_lang(pFace, maLang.num); mnHash = maLang.num; } } if (!mpSettings) - { mpSettings = gr_face_featureval_for_lang(pFace, 0); - } } GrFeatureParser::~GrFeatureParser() |