Permalink
Browse files

Clean up cached font messages and data

  • Loading branch information...
TheCycoONE committed Sep 26, 2018
1 parent ac53d63 commit 96a0546393f328d050a684322d213977d9bc4e81
Showing with 4 additions and 3 deletions.
  1. +4 −3 CorsixTH/Src/th_gfx_font.cpp
@@ -333,9 +333,10 @@ freetype_font::freetype_font()
freetype_font::~freetype_font() freetype_font::~freetype_font()
{ {
for(cached_text* pEntry = cache; for( cached_text* pEntry = cache;
pEntry != cache + (1 << cache_size_log2); ++pEntry) pEntry != cache + (1 << cache_size_log2); ++pEntry) {
{ delete[] pEntry->message;
delete[] pEntry->data;
free_texture(pEntry); free_texture(pEntry);
} }
if(font_face != nullptr) if(font_face != nullptr)

0 comments on commit 96a0546

Please sign in to comment.