forked from enlightenment/efl
Adding EINA_INLIST_CONTAINER_GET to the examples when freeing the list.
Author: Guilherme Iscaro <iscaro@profusion.mobi> SVN revision: 71850
This commit is contained in:
parent
4efd677ac8
commit
5590d14689
|
@ -86,7 +86,8 @@ main(void)
|
|||
|
||||
while (list)
|
||||
{
|
||||
Eina_Inlist *aux = list;
|
||||
struct my_struct *aux = EINA_INLIST_CONTAINER_GET(list,
|
||||
struct my_struct);
|
||||
list = eina_inlist_remove(list, list);
|
||||
free(aux);
|
||||
}
|
||||
|
|
|
@ -54,7 +54,8 @@ main(void)
|
|||
|
||||
while (inlist)
|
||||
{
|
||||
Eina_Inlist *aux = inlist;
|
||||
struct my_struct *aux = EINA_INLIST_CONTAINER_GET(inlist,
|
||||
struct my_struct);
|
||||
inlist = eina_inlist_remove(inlist, inlist);
|
||||
free(aux);
|
||||
}
|
||||
|
|
|
@ -63,7 +63,8 @@ main(void)
|
|||
|
||||
while (list)
|
||||
{
|
||||
Eina_Inlist *aux = list;
|
||||
struct my_struct *aux = EINA_INLIST_CONTAINER_GET(list,
|
||||
struct my_struct);
|
||||
list = eina_inlist_remove(list, list);
|
||||
free(aux);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue