diff --git a/src/common/filesys.cpp b/src/common/filesys.cpp index c7636d0386..76e4c801c9 100644 --- a/src/common/filesys.cpp +++ b/src/common/filesys.cpp @@ -295,7 +295,7 @@ wxFSFile* wxLocalFSHandler::OpenFile(wxFileSystem& WXUNUSED(fs), const wxString& if ( !is->IsOk() ) return nullptr; - return new wxFSFile(is.get(), + return new wxFSFile(is.release(), location, wxEmptyString, GetAnchor(location)