aboutsummaryrefslogtreecommitdiff
path: root/engines/cruise/font.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/cruise/font.cpp')
-rw-r--r--engines/cruise/font.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/cruise/font.cpp b/engines/cruise/font.cpp
index 6d87d0ef6f..de82b4b436 100644
--- a/engines/cruise/font.cpp
+++ b/engines/cruise/font.cpp
@@ -445,4 +445,13 @@ gfxEntryStruct *renderText(int inRightBorder_X, const char *string) {
return generatedGfxEntry;
}
+void freeGfx(gfxEntryStruct *pGfx) {
+ if (pGfx->imagePtr) {
+ free(pGfx->imagePtr);
+ }
+
+ free(pGfx);
+}
+
+
} // End of namespace Cruise