Skip to content

Commit

Permalink
fix memory leak in decoding indexed images
Browse files Browse the repository at this point in the history
  • Loading branch information
kisvegabor committed Jan 6, 2020
1 parent 7afd70a commit f31ba6c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lv_draw/lv_img_decoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,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);

Expand Down

0 comments on commit f31ba6c

Please sign in to comment.