[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);
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user