mirror of https://github.com/PCSX2/pcsx2.git
gsdx linux: fix a memory leak
Not important but pollute the valgrind log
This commit is contained in:
parent
b906217504
commit
9fe13f7a6b
|
@ -1581,6 +1581,7 @@ EXPORT_C GSReplay(char* lpszCmdLine, int renderer)
|
||||||
packets.push_back(p);
|
packets.push_back(p);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
delete file;
|
||||||
}
|
}
|
||||||
|
|
||||||
sleep(1);
|
sleep(1);
|
||||||
|
|
|
@ -28,12 +28,13 @@ class GSDumpFile {
|
||||||
protected:
|
protected:
|
||||||
FILE* m_fp;
|
FILE* m_fp;
|
||||||
|
|
||||||
GSDumpFile(char* filename);
|
|
||||||
virtual ~GSDumpFile();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual bool IsEof() = 0;
|
virtual bool IsEof() = 0;
|
||||||
virtual void Read(void* ptr, size_t size) = 0;
|
virtual void Read(void* ptr, size_t size) = 0;
|
||||||
|
|
||||||
|
GSDumpFile(char* filename);
|
||||||
|
virtual ~GSDumpFile();
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef LZMA_SUPPORTED
|
#ifdef LZMA_SUPPORTED
|
||||||
|
|
Loading…
Reference in New Issue