gsdx linux: fix a memory leak

Not important but pollute the valgrind log
This commit is contained in:
Gregory Hainaut 2015-06-02 09:26:58 +02:00
parent b906217504
commit 9fe13f7a6b
2 changed files with 4 additions and 2 deletions

View File

@ -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);

View File

@ -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