diff options
author | Marti Maria <marti.maria@littlecms.com> | 2022-07-06 12:06:56 +0300 |
---|---|---|
committer | Marti Maria <marti.maria@littlecms.com> | 2022-07-06 12:06:56 +0300 |
commit | e90f783ab5f8559f2d12a0caf4db2c2869a7931f (patch) | |
tree | fc1cbc2f1a18db858ff4b354f18c8dde701faa05 /testbed | |
parent | c3d7f491e2daebda2413fb3d2935c51df1c50ac7 (diff) |
fix memory leaks on testbed
Fix some memory leaks on fast float plug-in testbed
Fix memory leak on unregister plugin for global context
Fix MS VS 2022 references
Diffstat (limited to 'testbed')
-rw-r--r-- | testbed/testcms2.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/testbed/testcms2.c b/testbed/testcms2.c index 9129589..02a9a7b 100644 --- a/testbed/testcms2.c +++ b/testbed/testcms2.c @@ -9234,13 +9234,12 @@ int main(int argc, char* argv[]) _CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF ); #endif - // First of all, check for the right header - if (cmsGetEncodedCMMversion() != LCMS_VERSION) { - Die("Oops, you are mixing header and shared lib!\nHeader version reports to be '%d' and shared lib '%d'\n", LCMS_VERSION, cmsGetEncodedCMMversion()); - } + if (cmsGetEncodedCMMversion() != LCMS_VERSION) { + Die("Oops, you are mixing header and shared lib!\nHeader version reports to be '%d' and shared lib '%d'\n", LCMS_VERSION, cmsGetEncodedCMMversion()); + } - printf("LittleCMS %2.2f test bed %s %s\n\n", LCMS_VERSION / 1000.0, __DATE__, __TIME__); + printf("LittleCMS %2.2f test bed %s %s\n\n", cmsGetEncodedCMMversion() / 1000.0, __DATE__, __TIME__); if ((argc == 2) && strcmp(argv[1], "--exhaustive") == 0) { |