[Fix] Another memleak. :/
This commit is contained in:
parent
c9a9eea55e
commit
e5d050c22d
@ -238,12 +238,11 @@ void load_screen(void) {
|
||||
files = pack_listfiles(data, &nfiles);
|
||||
len = strlen("../gfx/loading");
|
||||
nload = 0;
|
||||
for(i = 0; i < (int)nfiles; i++)
|
||||
if(strncmp(files[i], "../gfx/loading", len)==0) {
|
||||
for(i = 0; i < (int)nfiles; i++) {
|
||||
if(strncmp(files[i], "../gfx/loading", len)==0)
|
||||
nload++;
|
||||
free(files[i]);
|
||||
}
|
||||
free(files);
|
||||
free(files[i]);
|
||||
}
|
||||
|
||||
/* Must have loading screens. */
|
||||
if(nload == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user