diff --git a/libsrc/ImageSEGConverter.cpp b/libsrc/ImageSEGConverter.cpp index a621b487..5e4005a2 100644 --- a/libsrc/ImageSEGConverter.cpp +++ b/libsrc/ImageSEGConverter.cpp @@ -5,8 +5,9 @@ //DCMTK includes -#include #include +#include +#include namespace dcmqi { @@ -495,6 +496,7 @@ namespace dcmqi { cerr << "ERROR: Failed to load segmentation dataset! " << cond.text() << endl; throw -1; } + OFunique_ptr segdocguard(segdoc); // Directions FGInterface &fgInterface = segdoc->getFunctionalGroups();