]> git.gir.st - VIper.git/commit
game loop (restartable), fix memory leak
authorgirst <girst@users.noreply.github.com>
Tue, 22 May 2018 12:41:09 +0000 (14:41 +0200)
committergirst <girst@users.noreply.github.com>
Tue, 22 May 2018 12:43:17 +0000 (14:43 +0200)
commit1459540211f075c953eda9d649b456b8cd1ba7fe
tree12bf99e81ca7a151f7a728369bf0270986bb51b4
parent63e45de70c0f2cbe08f2fee62b29386a5913f263
game loop (restartable), fix memory leak

if we set respawn, we need to break out of the loop, otherwise `i' gets
->next'ed until i == NULL. then, spawn_item() will malloc() a new item,
and `i' was not freed(), but just NULL'd.
viiper.c
viiper.h
Imprint / Impressum