From b470c9af28752a1f360bf8c459ffd8fdcca3e6fb Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Wed, 28 Mar 2012 19:17:53 +0200 Subject: BASE: Free TTFLibrary singleton on shutdown. This uses a helper function because TTFLibrary is internal. --- graphics/fonts/ttf.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'graphics/fonts/ttf.cpp') diff --git a/graphics/fonts/ttf.cpp b/graphics/fonts/ttf.cpp index 7505f7913e..7f5c616710 100644 --- a/graphics/fonts/ttf.cpp +++ b/graphics/fonts/ttf.cpp @@ -70,6 +70,10 @@ private: bool _initialized; }; +void shutdownTTF() { + TTFLibrary::destroy(); +} + #define g_ttf ::Graphics::TTFLibrary::instance() TTFLibrary::TTFLibrary() : _library(), _initialized(false) { -- cgit v1.2.3