diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/text/qfontsubset_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/text/qfontsubset_p.h b/src/gui/text/qfontsubset_p.h index 153349d..e6b4f27 100644 --- a/src/gui/text/qfontsubset_p.h +++ b/src/gui/text/qfontsubset_p.h @@ -66,7 +66,7 @@ public: : object_id(obj_id), noEmbed(false), fontEngine(fe), downloaded_glyphs(0), standard_font(false) { fontEngine->ref.ref(); addGlyph(0); } ~QFontSubset() { - if (!fontEngine->ref.deref()) + if (!fontEngine->ref.deref() && fontEngine->cache_count == 0) delete fontEngine; } |