[Fix] Another memleak. :/

This commit is contained in:
Allanis 2013-08-06 19:44:53 +01:00
parent c9a9eea55e
commit e5d050c22d

View File

@ -238,12 +238,11 @@ void load_screen(void) {
files = pack_listfiles(data, &nfiles); files = pack_listfiles(data, &nfiles);
len = strlen("../gfx/loading"); len = strlen("../gfx/loading");
nload = 0; nload = 0;
for(i = 0; i < (int)nfiles; i++) for(i = 0; i < (int)nfiles; i++) {
if(strncmp(files[i], "../gfx/loading", len)==0) { if(strncmp(files[i], "../gfx/loading", len)==0)
nload++; nload++;
free(files[i]); free(files[i]);
} }
free(files);
/* Must have loading screens. */ /* Must have loading screens. */
if(nload == 0) { if(nload == 0) {