Skip to content
Snippets Groups Projects
Commit 09fd7099 authored by schneider's avatar schneider
Browse files

Merge branch 'schneider/fix-blit-free' into 'master'

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

See merge request !453
parents d85c91c3 c1263ff9
No related branches found
No related tags found
1 merge request!453fix(display): Do not free user memory in blit
Pipeline #5146 passed
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment