aboutsummaryrefslogtreecommitdiff
path: root/engines/agos/intern.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/agos/intern.h')
-rw-r--r--engines/agos/intern.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/agos/intern.h b/engines/agos/intern.h
index 54cf4dba16..4479e2851e 100644
--- a/engines/agos/intern.h
+++ b/engines/agos/intern.h
@@ -161,6 +161,7 @@ struct WindowBlock {
uint8 fill_color, text_color;
IconBlock *iconPtr;
WindowBlock() { memset(this, 0, sizeof(*this)); }
+ ~WindowBlock() { free (iconPtr); }
};
// note on text offset:
// the actual x-coordinate is: textColumn * 8 + textColumnOffset