diff --git a/mednafen/FileStream.cpp b/mednafen/FileStream.cpp index 00702bf..06f2c86 100644 --- a/mednafen/FileStream.cpp +++ b/mednafen/FileStream.cpp @@ -29,14 +29,10 @@ FileStream::FileStream(const char *path, const int mode) { OpenedMode = mode; fp = filestream_open(path, (mode == MODE_WRITE) ? RETRO_VFS_FILE_ACCESS_WRITE : RETRO_VFS_FILE_ACCESS_READ, RETRO_VFS_FILE_ACCESS_HINT_NONE); - original_path = strdup(path); } FileStream::~FileStream() { - if (original_path) - free(original_path); - original_path = NULL; } uint64_t FileStream::attributes(void) diff --git a/mednafen/FileStream.h b/mednafen/FileStream.h index ae29b68..66488b9 100644 --- a/mednafen/FileStream.h +++ b/mednafen/FileStream.h @@ -41,7 +41,6 @@ class FileStream : public Stream private: RFILE *fp; - char *original_path; int OpenedMode; };