aboutsummaryrefslogtreecommitdiff
path: root/graphics/fonts/ttf.cpp
diff options
context:
space:
mode:
authorAlyssa Milburn2012-03-28 19:17:53 +0200
committerAlyssa Milburn2012-03-28 19:17:53 +0200
commitb470c9af28752a1f360bf8c459ffd8fdcca3e6fb (patch)
treec85f79c91a36759113a70a10c454652c4b5471bc /graphics/fonts/ttf.cpp
parent6d3927cd7a6e93452366085e179b156558f78a2b (diff)
downloadscummvm-rg350-b470c9af28752a1f360bf8c459ffd8fdcca3e6fb.tar.gz
scummvm-rg350-b470c9af28752a1f360bf8c459ffd8fdcca3e6fb.tar.bz2
scummvm-rg350-b470c9af28752a1f360bf8c459ffd8fdcca3e6fb.zip
BASE: Free TTFLibrary singleton on shutdown.
This uses a helper function because TTFLibrary is internal.
Diffstat (limited to 'graphics/fonts/ttf.cpp')
-rw-r--r--graphics/fonts/ttf.cpp4
1 files changed, 4 insertions, 0 deletions
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) {