Signed-off-by: 屑屑屑 <jiangwenda5@h-partners.com>
This commit is contained in:
屑屑屑
2026-04-11 12:25:47 +08:00
parent fcdb730552
commit fd7f054daf
+10 -12
View File
@@ -2285,22 +2285,20 @@ public:
}
~AstcCustomizedSoManager()
{
if (!astcCustomizedSoOpened_ || astcCustomizedSoHandle_ == nullptr)
if (astcCustomizedSoOpened_ && astcCustomizedSoHandle_ != nullptr)
{
printf("astcenc customized so is not be opened when dlclose!\n");
return;
}
#if defined(_WIN32) && !defined(__CYGWIN__)
if (!FreeLibrary(astcCustomizedSoHandle_))
{
printf("astc dll FreeLibrary failed: %s\n", g_astcCustomizedSo);
}
if (!FreeLibrary(astcCustomizedSoHandle_))
{
printf("astc dll FreeLibrary failed: %s\n", g_astcCustomizedSo);
}
#else
if (dlclose(astcCustomizedSoHandle_) != 0)
{
printf("astcenc so dlclose failed: %s\n", g_astcCustomizedSo.c_str());
}
if (dlclose(astcCustomizedSoHandle_) != 0)
{
printf("astcenc so dlclose failed: %s\n", g_astcCustomizedSo.c_str());
}
#endif
}
}
IsCustomizedBlockMode isCustomizedBlockModeFunc_;
CustomizedMaxPartitions customizedMaxPartitionsFunc_;