summaryrefslogtreecommitdiffstats
path: root/src/main-menu.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-03-18 17:55:36 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-03-18 17:55:36 (EDT)
commita0af666ae3cde911845db3032166b959e1b0f6c0 (patch)
tree96bd19e133a40eac8bee6f3874889a0a296c161d /src/main-menu.c
parent7a06de57bc7c0f0f71ea5ef51de73dad204d8e0d (diff)
downloaddodge-balls-a0af666ae3cde911845db3032166b959e1b0f6c0.zip
dodge-balls-a0af666ae3cde911845db3032166b959e1b0f6c0.tar.gz
dodge-balls-a0af666ae3cde911845db3032166b959e1b0f6c0.tar.bz2
main-menu: Don't free games textures
This code somehow causes some GCC warnings and a hang.
Diffstat (limited to 'src/main-menu.c')
-rw-r--r--src/main-menu.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main-menu.c b/src/main-menu.c
index 025ffd9..e029839 100644
--- a/src/main-menu.c
+++ b/src/main-menu.c
@@ -166,20 +166,6 @@ db_main_menu(void)
if (n > 0) {
for (i = 0; i < n; ++i) {
db_game_free(games[i]);
- if (texture_games_text != NULL &&
- texture_games_text[i] != NULL) {
- free(texture_games_text[i]);
- }
- if (texture_games_over != NULL &&
- texture_games_over[i] != NULL) {
- free(texture_games_over[i]);
- }
- }
- if (texture_games_text != NULL) {
- free(texture_games_text);
- }
- if (texture_games_over != NULL) {
- free(texture_games_over);
}
free(games);
}