Skip to content
Snippets Groups Projects

fix(display): Do not free user memory in blit

Merged schneider requested to merge schneider/fix-blit-free into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -150,7 +150,8 @@ static mp_obj_t mp_display_blit(size_t n_args, const mp_obj_t *args)
res = epic_disp_blit(pos_x, pos_y, width, height, buf, NULL);
}
if (buf) {
if (!rgb565) {
/* Do not free rgb565 data. It is owned by the caller */
m_free(buf);
}
Loading