1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

fix memory leak with indexed + alpha images

This commit is contained in:
Gabor Kiss-Vamosi 2019-11-25 12:20:21 +01:00
parent b9d693d153
commit ed500690c3

View File

@ -515,6 +515,7 @@ void lv_img_decoder_built_in_close(lv_img_decoder_t * decoder, lv_img_decoder_ds
}
#endif
if(user_data->palette) lv_mem_free(user_data->palette);
if(user_data->opa) lv_mem_free(user_data->opa);
lv_mem_free(user_data);