aboutsummaryrefslogtreecommitdiff
path: root/sword2
diff options
context:
space:
mode:
Diffstat (limited to 'sword2')
-rw-r--r--sword2/maketext.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sword2/maketext.h b/sword2/maketext.h
index adde69d9cd..4cc1785e2f 100644
--- a/sword2/maketext.h
+++ b/sword2/maketext.h
@@ -99,6 +99,11 @@ public:
_blocList[i].text_mem = NULL;
}
+ ~FontRenderer() {
+ for (int i = 0; i < MAX_text_blocs; i++)
+ free(_blocList[i].text_mem);
+ }
+
byte *makeTextSprite(byte *sentence, uint16 maxWidth, uint8 pen, uint32 fontRes, uint8 border = BORDER_PEN);
void killTextBloc(uint32 bloc_number);