mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-11 21:55:27 +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() : surfaces(NULL), surfaces_n(0) {}
|
||||||
|
|
||||||
|
SurfaceList::~SurfaceList() {
|
||||||
|
free();
|
||||||
|
}
|
||||||
|
|
||||||
void SurfaceList::load(Common::SeekableReadStream *stream, Type type, int sub_hack) {
|
void SurfaceList::load(Common::SeekableReadStream *stream, Type type, int sub_hack) {
|
||||||
free();
|
free();
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ public:
|
|||||||
enum Type { kTypeOn };
|
enum Type { kTypeOn };
|
||||||
|
|
||||||
SurfaceList();
|
SurfaceList();
|
||||||
|
~SurfaceList();
|
||||||
void load(Common::SeekableReadStream *stream, Type type, int sub_hack = 0);
|
void load(Common::SeekableReadStream *stream, Type type, int sub_hack = 0);
|
||||||
void free();
|
void free();
|
||||||
void render(Graphics::Surface *surface, const Common::Rect & clip) const;
|
void render(Graphics::Surface *surface, const Common::Rect & clip) const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user