Add a static global singleton responsible for deallocation of memory to avoid vld warning

This commit is contained in:
Andreas Fabri 2016-01-13 11:03:12 +01:00 committed by Sébastien Loriot
parent b2196fca0c
commit 13ff46e8d5
1 changed files with 7 additions and 0 deletions

View File

@ -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;