X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Frasterize;a=blobdiff_plain;f=list.h;fp=list.h;h=91f176d50325afb1153c829223697cbe19203a8b;hp=5adf22874fede7db45e32a99ad7d77a3ef078b1a;hb=e16cf0578f4baaf879e4ab9d3528a765bfd29be0;hpb=db44364a1fabda81d3f6c842c4e4778eac6495a5 diff --git a/list.h b/list.h index 5adf228..91f176d 100644 --- a/list.h +++ b/list.h @@ -94,10 +94,10 @@ void list_pop(list_t** l) * This is a O(n) operation. */ INLINE_MAYBE -void list_destroy(list_t* l) +void list_destroy(list_t** l) { - while (l) { - list_pop(&l); + while (*l) { + list_pop(l); } }