From 241b9ffbb1b7cbed1fdde3e51cda0b6d1323a771 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 18 Dec 2017 16:53:03 +0100 Subject: [PATCH] Update --- mednafen/FileStream.cpp | 4 ---- mednafen/FileStream.h | 1 - 2 files changed, 5 deletions(-) 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; };