Crash when freeing custom libraries

This commit is contained in:
markm11 2020-11-06 14:38:47 -05:00
parent e0472480c4
commit a44e3be492

View File

@ -231,7 +231,14 @@ void freeCustomLibraries()
dll->release();
freeLibrary(dll->offset);
nextDll = dll->nextDll;
D2FogMemDeAlloc(dll,__FILE__,__LINE__,0);
if (version_D2Game == V114d)
{
delete dll;
}
else
{
D2FogMemDeAlloc(dll, __FILE__, __LINE__, 0);
}
dll = nextDll;
}
}