aboutsummaryrefslogtreecommitdiff
path: root/engines/tony/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/tony/font.cpp')
-rw-r--r--engines/tony/font.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/tony/font.cpp b/engines/tony/font.cpp
index 42540a2620..28e8f14d38 100644
--- a/engines/tony/font.cpp
+++ b/engines/tony/font.cpp
@@ -1829,6 +1829,18 @@ RMText::~RMText() {
}
+void RMText::Unload() {
+ if (m_fonts[0] != NULL) {
+ delete m_fonts[0];
+ delete m_fonts[1];
+ delete m_fonts[2];
+ delete m_fonts[3];
+ m_fonts[0] = m_fonts[1] = m_fonts[2] = m_fonts[3] = 0;
+
+ g_system->unlockMutex(m_cs);
+ }
+}
+
void RMText::SetMaxLineLength(int max) {
maxLineLength = max;
}