Crash when freeing custom libraries

This commit is contained in:
markm11 2020-11-06 13:34:07 -05:00
parent f0ceac1d92
commit f834ce7755

View File

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