diff options
author | Alyssa Milburn | 2012-03-28 19:17:53 +0200 |
---|---|---|
committer | Alyssa Milburn | 2012-03-28 19:17:53 +0200 |
commit | b470c9af28752a1f360bf8c459ffd8fdcca3e6fb (patch) | |
tree | c85f79c91a36759113a70a10c454652c4b5471bc /base | |
parent | 6d3927cd7a6e93452366085e179b156558f78a2b (diff) | |
download | scummvm-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 'base')
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/base/main.cpp b/base/main.cpp index 6fb56b49c4..e103b70d68 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -57,6 +57,9 @@ #include "graphics/cursorman.h" #include "graphics/fontman.h" +#ifdef USE_FREETYPE2 +#include "graphics/fonts/ttf.h" +#endif #include "backends/keymapper/keymapper.h" @@ -505,6 +508,9 @@ extern "C" int scummvm_main(int argc, const char * const argv[]) { MusicManager::destroy(); Graphics::CursorManager::destroy(); Graphics::FontManager::destroy(); +#ifdef USE_FREETYPE2 + Graphics::shutdownTTF(); +#endif return 0; } |