Free data.

This commit is contained in:
Steve 2018-02-03 16:21:53 +00:00
parent b878a61854
commit 187b887698
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ void loadWorld(char *filename)
loadEntities(cJSON_GetObjectItem(root, "entities"));
loadObjectives(cJSON_GetObjectItem(root, "objectives"));
cJSON_Delete(root);
free(text);
}
static void loadEnemyTypes(char *enemyTypes)