Mercurial > hg > orthanc-webviewer
changeset 331:62ef442b9b3f default tip
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 14 Jun 2025 09:13:58 +0200 (3 weeks ago) |
parents | d89da90a262b |
children | |
files | Plugin/Cache/CacheManager.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugin/Cache/CacheManager.cpp Sat Jun 14 09:09:56 2025 +0200 +++ b/Plugin/Cache/CacheManager.cpp Sat Jun 14 09:13:58 2025 +0200 @@ -470,9 +470,9 @@ std::unique_ptr<Orthanc::IMemoryBuffer> buffer; # if ORTHANC_FRAMEWORK_VERSION_IS_ABOVE(1, 12, 8) - pimpl_->storage_.ReadWhole(uuid, Orthanc::FileContentType_Unknown); + buffer.reset(pimpl_->storage_.ReadWhole(uuid, Orthanc::FileContentType_Unknown)); # else - pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown); + buffer.reset(pimpl_->storage_.Read(uuid, Orthanc::FileContentType_Unknown)); # endif buffer->MoveToString(content);