diff options
Diffstat (limited to 'src/title.c')
-rw-r--r-- | src/title.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/title.c b/src/title.c index 2183588..f909a9e 100644 --- a/src/title.c +++ b/src/title.c @@ -36,7 +36,7 @@ static int order_leaderboard() { struct LeaderboardEntries *TmpStore[UINT16_MAX*2]; int size = 0; for (size = 0; size < (UINT16_MAX*2); size++) /* If there's 131,000 entries, I dunno what to tell you. You really like pong... */ - TmpStore[size] = malloc(sizeof(struct LeaderboardEntries)); + TmpStore[size] = GC_malloc(sizeof(struct LeaderboardEntries)); if(*TmpStore == NULL) { /* Check if memory got assigned correctly. */ exit(1); } @@ -57,7 +57,7 @@ static int order_leaderboard() { /* Cleanup */ /* Free TmpStore */ - free(*TmpStore); /* Truth be told, I dunno if this even works, since the amount of memory used is kilobytes... */ + GC_free(*TmpStore); /* Truth be told, I dunno if this even works, since the amount of memory used is kilobytes... */ /* Close leaderboard file. */ if (LeaderboardFile != NULL) { fclose(LeaderboardFile); @@ -79,7 +79,7 @@ static void score_screen(Camera2D *MainCamera) { struct LeaderboardEntries *Scores[UINT16_MAX*2]; int size = 0; for (size = 0; size < (UINT16_MAX*2); size++) /* If there's 131,000 entries, I dunno what to tell you. You really like pong... */ - Scores[size] = malloc(sizeof(struct LeaderboardEntries)); + Scores[size] = GC_malloc(sizeof(struct LeaderboardEntries)); if(*Scores == NULL) { /* Check if memory got assigned correctly. */ exit(1); } |