jscript: Use list_head get first entry of list.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1eb2c5520c
commit
b2e58b4c7c
|
@ -148,7 +148,7 @@ void heap_pool_clear(heap_pool_t *heap)
|
||||||
if(!heap)
|
if(!heap)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
while((tmp = list_next(&heap->custom_blocks, &heap->custom_blocks))) {
|
while((tmp = list_head(&heap->custom_blocks))) {
|
||||||
list_remove(tmp);
|
list_remove(tmp);
|
||||||
heap_free(tmp);
|
heap_free(tmp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue