diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2019-06-04 16:39:30 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2019-06-04 16:40:31 +0200 |
commit | a050769359f2adeba74ad0c7f4b406353953e883 (patch) | |
tree | 78384165d930b0c7b0974a7b5cb647776f353c50 | |
parent | 14692b925e2dd51b75f5d135585f5644b4a038a1 (diff) |
Fix minor memory leak
We would leak a few bytes per glyph cache since the area
allocator was never deleted.
Change-Id: I9efdfbe34839dada2d8f03d07e271b2ade812811
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
-rw-r--r-- | src/runtime/q3dsdistancefieldglyphcache.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/q3dsdistancefieldglyphcache.cpp b/src/runtime/q3dsdistancefieldglyphcache.cpp index a6e5477..290ac32 100644 --- a/src/runtime/q3dsdistancefieldglyphcache.cpp +++ b/src/runtime/q3dsdistancefieldglyphcache.cpp @@ -152,6 +152,7 @@ Q3DSDistanceFieldGlyphCache::Q3DSDistanceFieldGlyphCache(const QRawFont &font, Q Q3DSDistanceFieldGlyphCache::~Q3DSDistanceFieldGlyphCache() { + delete m_areaAllocator; } int Q3DSDistanceFieldGlyphCache::maxTextureSize() const |