Browse Source

Small note on free

master
Taylor Bockman 5 years ago
parent
commit
5ae0576ce0
  1. 1
      src/vertex.c

1
src/vertex.c

@ -41,6 +41,7 @@ void free_polygon(struct Vertex **head)
} }
while(*head != NULL) { while(*head != NULL) {
// Double pointer so we can set the pointer itself to null.
struct Vertex **temp = head; struct Vertex **temp = head;
(*head) = (*head)->next; (*head) = (*head)->next;
free(*temp); free(*temp);

Loading…
Cancel
Save