TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.1k stars 222 forks source link

ImageLoad free dib data #15

Closed holgk closed 9 years ago

holgk commented 9 years ago

We create a FIBITMAP *dib pointer and check if there is data but we do not free the data through a delete dib. I don't know much about FreeImage but i don't thing our BYTE* result is pointing to the same data.

TheCherno commented 9 years ago

This will be handled in the upcoming maintenance episode (Ep. 20). I left a comment in Texture::load to remind myself. :)

TheCherno commented 9 years ago

Fixed in Ep. 20.