gonetz / GLideN64

A new generation, open-source graphics plugin for N64 emulators.
Other
754 stars 174 forks source link

Add DllCrtFree implementation #2809

Closed Aurumaker72 closed 5 months ago

Aurumaker72 commented 5 months ago

Mupen64-rr-lua is crashing when freeing the image buffer acquired from ReadScreen.

GLideN64 doesn't provide a free override (DllCrtFree), so mupen falls back to the standard library one, assuming the plugin is using it as well

Adding a DllCrtFree implementation to GLideN64 makes sure the buffer allocated by the plugin is freed by the same CRT version, avoiding this error.