diff --git a/dlls/mscms/mscms_main.c b/dlls/mscms/mscms_main.c index a7cf23bc8bc..00e2a753e87 100644 --- a/dlls/mscms/mscms_main.c +++ b/dlls/mscms/mscms_main.c @@ -46,7 +46,9 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, LPVOID reserved ) DisableThreadLibraryCalls( hinst ); break; case DLL_PROCESS_DETACH: +#ifdef HAVE_LCMS free_handle_tables(); +#endif break; } return TRUE;