Mercurial > hg > orthanc
changeset 3921:f6ccff28fbed transcoding
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 12 May 2020 19:21:52 +0200 |
parents | 6f11b3233a06 |
children | 74eeadf5d51d |
files | Plugins/Samples/Common/OrthancPluginCppWrapper.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Tue May 12 12:38:27 2020 +0200 +++ b/Plugins/Samples/Common/OrthancPluginCppWrapper.cpp Tue May 12 19:21:52 2020 +0200 @@ -3364,7 +3364,9 @@ } else { - return new DicomInstance(instance); + std::unique_ptr<DicomInstance> result(new DicomInstance(instance)); + result->toFree_ = true; + return result.release(); } } #endif