Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
card10
firmware
Commits
09fd7099
Commit
09fd7099
authored
Feb 07, 2021
by
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
Pipeline
#5146
passed with stages
in 1 minute and 7 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
pycardium/modules/sys_display.c
View file @
09fd7099
...
...
@@ -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
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment