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:
Sebastian Lackner 2016-07-07 05:40:55 +02:00 committed by Alexandre Julliard
parent 1eb2c5520c
commit b2e58b4c7c
1 changed files with 1 additions and 1 deletions

View File

@ -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);
} }