diff --git a/CGAL_ImageIO/include/CGAL/ImageIO_impl.h b/CGAL_ImageIO/include/CGAL/ImageIO_impl.h index 2ba5536e3f7..064e3d52995 100644 --- a/CGAL_ImageIO/include/CGAL/ImageIO_impl.h +++ b/CGAL_ImageIO/include/CGAL/ImageIO_impl.h @@ -70,7 +70,14 @@ static PTRIMAGE_FORMAT firstFormat=NULL; /** the Inrimage file format (default format) is initialized to null */ static PTRIMAGE_FORMAT InrimageFormat=NULL; +struct Remove_supported_file_format { + ~Remove_supported_file_format() + { + removeSupportedFileFormat(); + } +}; +static Remove_supported_file_format rsff;