minor refactoring + non-zero int fixed

This commit is contained in:
2020-11-05 19:53:55 -06:00
parent 4cd5c89d28
commit aa975b7330
10 changed files with 58 additions and 27 deletions

View File

@@ -40,7 +40,7 @@ void cosmoV_freeState(CState *state) {
CObj *objs = state->objects;
while (objs != NULL) {
CObj *next = objs->next;
cosmoO_freeObject(state, objs);
cosmoO_free(state, objs);
objs = next;
}