Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
card10
firmware
Commits
09fd7099
Commit
09fd7099
authored
4 years ago
by
schneider
Browse files
Options
Downloads
Plain Diff
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
!453
fix(display): Do not free user memory in blit
Pipeline
#5146
passed
4 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pycardium/modules/sys_display.c
+2
-1
2 additions, 1 deletion
pycardium/modules/sys_display.c
with
2 additions
and
1 deletion
pycardium/modules/sys_display.c
+
2
−
1
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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment