mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +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;
|
int comp;
|
||||||
struct retro_system_av_info info;
|
struct retro_system_av_info info;
|
||||||
uint32_t *end = NULL;
|
uint32_t *end = NULL;
|
||||||
|
if (image_buffer) free(image_buffer);
|
||||||
|
|
||||||
image_buffer = (uint32_t*)stbi_load(
|
image_buffer = (uint32_t*)stbi_load(
|
||||||
path,
|
path,
|
||||||
&image_width,
|
&image_width,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user