diff options
author | Christopher Page | 2008-05-22 23:40:36 +0000 |
---|---|---|
committer | Christopher Page | 2008-05-22 23:40:36 +0000 |
commit | 9e4115a3bf5c2d2004f5876a5c9b6b62c2706630 (patch) | |
tree | 0515e9f52948ed0808ac6138809b555a329db50d /engines/agos/intern.h | |
parent | 799fb932f421c7833e2afbfd897b6f0c6c90c6e5 (diff) | |
download | scummvm-rg350-9e4115a3bf5c2d2004f5876a5c9b6b62c2706630.tar.gz scummvm-rg350-9e4115a3bf5c2d2004f5876a5c9b6b62c2706630.tar.bz2 scummvm-rg350-9e4115a3bf5c2d2004f5876a5c9b6b62c2706630.zip |
AGOS: Fixed a memory leak from earlier in a better way
svn-id: r32219
Diffstat (limited to 'engines/agos/intern.h')
-rw-r--r-- | engines/agos/intern.h | 1 |
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 |