1
0
mirror of https://gitlab.com/hashborgir/plugy.git synced 2025-04-30 08:15:38 +00:00

Crash when freeing custom libraries

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

@ -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;
} }
} }