Mercurial > hg > orthanc
comparison Plugins/Samples/Common/OrthancPluginCppWrapper.cpp @ 3921:f6ccff28fbed transcoding
fix
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 12 May 2020 19:21:52 +0200 |
parents | 6f11b3233a06 |
children | 2434e98987ba |
comparison
equal
deleted
inserted
replaced
3919:6f11b3233a06 | 3921:f6ccff28fbed |
---|---|
3362 { | 3362 { |
3363 ORTHANC_PLUGINS_THROW_EXCEPTION(Plugin); | 3363 ORTHANC_PLUGINS_THROW_EXCEPTION(Plugin); |
3364 } | 3364 } |
3365 else | 3365 else |
3366 { | 3366 { |
3367 return new DicomInstance(instance); | 3367 std::unique_ptr<DicomInstance> result(new DicomInstance(instance)); |
3368 result->toFree_ = true; | |
3369 return result.release(); | |
3368 } | 3370 } |
3369 } | 3371 } |
3370 #endif | 3372 #endif |
3371 } | 3373 } |