From 13ff46e8d56768f84ce445c687a64a3ef245eb45 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 13 Jan 2016 11:03:12 +0100 Subject: [PATCH] Add a static global singleton responsible for deallocation of memory to avoid vld warning --- CGAL_ImageIO/include/CGAL/ImageIO_impl.h | 7 +++++++ 1 file changed, 7 insertions(+) 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;