TEENAGENT: Further Memory Leak Fixes.

svn-id: r55673
This commit is contained in:
David Turner 2011-01-31 08:51:37 +00:00
parent c11fdabab9
commit a256b74e0a
2 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,10 @@ namespace TeenAgent {
SurfaceList::SurfaceList() : surfaces(NULL), surfaces_n(0) {}
SurfaceList::~SurfaceList() {
free();
}
void SurfaceList::load(Common::SeekableReadStream *stream, Type type, int sub_hack) {
free();

View File

@ -35,6 +35,7 @@ public:
enum Type { kTypeOn };
SurfaceList();
~SurfaceList();
void load(Common::SeekableReadStream *stream, Type type, int sub_hack = 0);
void free();
void render(Graphics::Surface *surface, const Common::Rect & clip) const;