diff options
author | Alyssa Milburn | 2012-03-28 19:17:13 +0200 |
---|---|---|
committer | Alyssa Milburn | 2012-03-28 19:17:13 +0200 |
commit | 6d3927cd7a6e93452366085e179b156558f78a2b (patch) | |
tree | 52159d36200f71a19f4259d87d88873ab49dc722 /graphics/fontman.h | |
parent | fdee01bf04f1d66e4365e39c871c4b00d7b78946 (diff) | |
download | scummvm-rg350-6d3927cd7a6e93452366085e179b156558f78a2b.tar.gz scummvm-rg350-6d3927cd7a6e93452366085e179b156558f78a2b.tar.bz2 scummvm-rg350-6d3927cd7a6e93452366085e179b156558f78a2b.zip |
GRAPHICS: Take ownership of fonts passed to FontManager.
Diffstat (limited to 'graphics/fontman.h')
-rw-r--r-- | graphics/fontman.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/fontman.h b/graphics/fontman.h index 42f7d856fa..b06ddea860 100644 --- a/graphics/fontman.h +++ b/graphics/fontman.h @@ -60,7 +60,9 @@ public: const Font *getFontByName(const Common::String &name) const; /** - * Associates a font object with an 'name' + * Associates a font object with an 'name'. + * The FontManager takes ownership of the provided font object + * and will delete it when necesssary. * * @param name the name of the font * @param font the font object @@ -111,6 +113,7 @@ private: ~FontManager(); Common::HashMap<Common::String, const Font *> _fontMap; + Common::Array<const Font *> _ownedFonts; Common::String _localizedFontName; }; |