mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-24 12:15:08 +00:00
Fix memory leak.
This commit is contained in:
parent
46156cf372
commit
a2118e3938
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user