delete() for all structures.

This commit is contained in:
Murilo Soares Pereira
2010-04-08 01:11:10 -03:00
parent ecaa2a4c68
commit 90c7ce6280
5 changed files with 36 additions and 2 deletions
+5
View File
@@ -42,6 +42,8 @@ void draw_empty_stacks() {
delwin(empty_stack[i]);
}
free(empty_stack);
return;
}
@@ -49,6 +51,9 @@ void initialize_game() {
struct deck *deck = NULL;
draw_empty_stacks();
allocate_deck(&deck);
initialize_deck(deck);
delete_deck(deck);
return;
}