ChaosMarc / PlugY

PlugY, The Survival Kit - Plug-in for Diablo II Lord of Destruction
GNU General Public License v3.0
179 stars 40 forks source link

Crash when freeing custom libraries #31

Closed ghost closed 3 years ago

ghost commented 3 years ago

Since the parameter 'dll' was created using c++ new we will remove it using c++ delete. The D2FogMemDeAlloc in version 1.14d is finicky and works sometime and others it causes crashes. I found another part of the code where halifax pretty much used the same way to deal with D2FogMemDeAlloc. It would probably not hurt to change all the code where this is used but lets keep it how it was for previous versions of Diablo 2