Fix memory leak when drawing text in non-common script
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
Wed, 18 Apr 2012 08:57:43 +0000 (10:57 +0200)
committerQt by Nokia <qt-info@nokia.com>
Wed, 18 Apr 2012 21:26:01 +0000 (23:26 +0200)
commit06d4ea64001f7d7c019f5dac5080d80e37828c3d
tree3ad80e8d7ad48866c8c6152465989bcf979fe1c6
parent197b423e9663c11221172253bb84754adb51742f
Fix memory leak when drawing text in non-common script

When the font engine cache was updated for new parameters, we
would overwrite the cached engine, but not deref the old
cached engine, thus it would never be deleted.

This is manual cherry pick of 44c14470e5b28e45c19d6959b114e063cf3f4d83
from 4.8 branch.

Change-Id: Ice2e555fe380dc9851ef490fa1a6928936ae4c35
Reviewed-by: Jiang Jiang <jiang.jiang@nokia.com>
src/gui/text/qtextengine.cpp