fix big memory leak in bsnes performance core loadstates
This commit is contained in:
parent
6517178e6d
commit
5f5fcc4812
|
@ -120,4 +120,14 @@ PPU::Cache::Cache(PPU &self) : self(self) {
|
|||
tilevalid[2] = new uint8[ 1024]();
|
||||
}
|
||||
|
||||
PPU::Cache::~Cache()
|
||||
{
|
||||
delete[] tiledata[0];
|
||||
delete[] tiledata[1];
|
||||
delete[] tiledata[2];
|
||||
delete[] tilevalid[0];
|
||||
delete[] tilevalid[1];
|
||||
delete[] tilevalid[2];
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -10,6 +10,7 @@ public:
|
|||
|
||||
void serialize(serializer&);
|
||||
Cache(PPU &self);
|
||||
~Cache();
|
||||
|
||||
PPU &self;
|
||||
friend class PPU;
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue