diff --git a/coding/file_reader.cpp b/coding/file_reader.cpp index 1966935e1e..93125dd5f6 100644 --- a/coding/file_reader.cpp +++ b/coding/file_reader.cpp @@ -87,7 +87,7 @@ FileReader::FileReader(string const & fileName, uint32_t logPageSize, uint32_t l : ModelReader(fileName) , m_logPageSize(logPageSize) , m_logPageCount(logPageCount) - , m_fileData(new FileReaderData(fileName, logPageSize, logPageCount)) + , m_fileData(make_shared(fileName, logPageSize, logPageCount)) , m_offset(0) , m_size(m_fileData->Size()) {