summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2019-06-04 16:39:30 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2019-06-04 16:40:31 +0200
commita050769359f2adeba74ad0c7f4b406353953e883 (patch)
tree78384165d930b0c7b0974a7b5cb647776f353c50 /src
parent14692b925e2dd51b75f5d135585f5644b4a038a1 (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>
Diffstat (limited to 'src')
-rw-r--r--src/runtime/q3dsdistancefieldglyphcache.cpp1
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