mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-30 07:23:05 +00:00
TEENAGENT: Further Memory Leak Fixes.
svn-id: r55673
This commit is contained in:
parent
c11fdabab9
commit
a256b74e0a
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user