fix: use dylib_close_library, not free to close dynamic lib

This commit is contained in:
Gowa2017
2023-04-20 22:05:51 +08:00
parent 4d40723c19
commit 4722f53869

View File

@@ -97,7 +97,7 @@ end:
void SDF_METHOD_free(SDF_METHOD *meth)
{
if (meth) free(meth->dso);
if (meth) dylib_close_library(meth->dso);
free(meth);
}