BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
31488478
Unverified
Commit
31488478
authored
Jan 04, 2018
by
Gabor Kiss-Vamosi
Committed by
GitHub
Jan 04, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #60 from BenQoo/beta
lv_group: fix memory leak.
parents
6eea879a
59fa14f9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
lv_group.c
lv_core/lv_group.c
+11
-1
No files found.
lv_core/lv_group.c
View file @
31488478
...
...
@@ -52,6 +52,16 @@ lv_group_t * lv_group_create(void)
}
/**
* Delete a group object
* @param group pointer to a group
*/
void
lv_group_del
(
lv_group_t
*
group
)
{
lv_ll_clear
(
&
(
group
->
obj_ll
));
lv_mem_free
(
group
);
}
/**
* Add an object to a group
* @param group pointer to a group
* @param obj pointer to an object to add
...
...
@@ -83,8 +93,8 @@ void lv_group_remove_obj(lv_obj_t * obj)
LL_READ
(
g
->
obj_ll
,
i
)
{
if
(
*
i
==
obj
)
{
lv_ll_rem
(
&
g
->
obj_ll
,
i
);
lv_mem_free
(
i
);
obj
->
group_p
=
NULL
;
break
;
}
}
...
...
Write
Preview
Markdown
is supported
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