diff Framework/Outputs/InMemoryTiledImage.cpp @ 154:32a94bbb7d05

merge
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 08 Oct 2018 12:12:39 +0200
parents a0f9a3df1110
children 6b8ccfc02051
line wrap: on
line diff
--- a/Framework/Outputs/InMemoryTiledImage.cpp	Fri Jul 27 14:06:26 2018 +0200
+++ b/Framework/Outputs/InMemoryTiledImage.cpp	Mon Oct 08 12:12:39 2018 +0200
@@ -117,7 +117,9 @@
       Tiles::const_iterator it = tiles_.find(std::make_pair(tileX, tileY));
       if (it != tiles_.end())
       {
-        return new Orthanc::ImageAccessor(*it->second);
+        std::auto_ptr<Orthanc::ImageAccessor> result(new Orthanc::ImageAccessor);
+        it->second->GetReadOnlyAccessor(*result);
+        return result.release();
       }
       else
       {