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(); dll->release();
freeLibrary(dll->offset); freeLibrary(dll->offset);
nextDll = dll->nextDll; nextDll = dll->nextDll;
if (version_D2Game == V114d)
{
delete dll;
}
else
{
D2FogMemDeAlloc(dll, __FILE__, __LINE__, 0); D2FogMemDeAlloc(dll, __FILE__, __LINE__, 0);
}
dll = nextDll; dll = nextDll;
} }
} }