Mercurial > hg > orthanc
comparison Core/Images/PamReader.cpp @ 3838:95083d2f6819
fix build on os x
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 15 Apr 2020 17:58:30 +0200 |
parents | 219de90c1f43 |
children |
comparison
equal
deleted
inserted
replaced
3837:963ea9fab402 | 3838:95083d2f6819 |
---|---|
40 | 40 |
41 #if ORTHANC_SANDBOXED == 0 | 41 #if ORTHANC_SANDBOXED == 0 |
42 # include "../SystemToolbox.h" | 42 # include "../SystemToolbox.h" |
43 #endif | 43 #endif |
44 | 44 |
45 #include <stdlib.h> // For malloc/free | |
45 #include <boost/algorithm/string/find.hpp> | 46 #include <boost/algorithm/string/find.hpp> |
46 #include <boost/lexical_cast.hpp> | 47 #include <boost/lexical_cast.hpp> |
47 | 48 |
48 | 49 |
49 namespace Orthanc | 50 namespace Orthanc |
295 size_t size) | 296 size_t size) |
296 { | 297 { |
297 content_.assign(reinterpret_cast<const char*>(buffer), size); | 298 content_.assign(reinterpret_cast<const char*>(buffer), size); |
298 ParseContent(); | 299 ParseContent(); |
299 } | 300 } |
301 | |
302 PamReader::~PamReader() | |
303 { | |
304 if (alignedImageBuffer_ != NULL) | |
305 { | |
306 free(alignedImageBuffer_); | |
307 } | |
308 } | |
300 } | 309 } |