From 195d11fe5b6131e5012ca9b94d88d15240bd7556 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 27 Jan 2009 18:47:18 +0000 Subject: [PATCH] D'oh! The GlyphCache memory is already managed by the block allocator. There was no leak before and r29047 freed the memory twice. Sorry about that. Already feeling like getting old and there is proof left and right... git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29061 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/FontCacheEntry.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/servers/app/FontCacheEntry.cpp b/src/servers/app/FontCacheEntry.cpp index 4567890ffc..935e5e27cf 100644 --- a/src/servers/app/FontCacheEntry.cpp +++ b/src/servers/app/FontCacheEntry.cpp @@ -49,18 +49,6 @@ class FontCacheEntry::GlyphCachePool { memset(fGlyphs, 0, sizeof(fGlyphs)); } - ~GlyphCachePool() - { - for (int i = 0; i < 256; i++) { - GlyphCache** cache = fGlyphs[i]; - if (cache == NULL) - continue; - for (int j = 0; j < 256; j++) - delete cache[j]; - delete[] cache; - } - } - const GlyphCache* FindGlyph(uint16 glyphCode) const { unsigned msb = (glyphCode >> 8) & 0xFF;