Fix memory leak.

This commit is contained in:
Alcaro 2016-01-23 15:23:31 +01:00
parent 46156cf372
commit a2118e3938

View File

@ -198,6 +198,8 @@ static bool imageviewer_load(const char *path, uint32_t *buf, int image_index)
int comp;
struct retro_system_av_info info;
uint32_t *end = NULL;
if (image_buffer) free(image_buffer);
image_buffer = (uint32_t*)stbi_load(
path,
&image_width,