1
0
mirror of https://github.com/mon/2dxTools.git synced 2024-11-23 22:10:57 +01:00

Merge pull request #3 from Hinara/patch-1

Close input files
This commit is contained in:
Will 2019-10-14 08:21:13 +10:00 committed by GitHub
commit 6ce38c6bee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ void extract_2dx(char* path) {
transfer_file(f, outFile, dxHeader.wavSize); transfer_file(f, outFile, dxHeader.wavSize);
fclose(outFile); fclose(outFile);
} }
fclose(f);
free(fileOffsets); free(fileOffsets);
//printf("Done!\n"); //printf("Done!\n");
} }
@ -52,4 +52,4 @@ int main(int argc, char** argv) {
extract_2dx(argv[i]); extract_2dx(argv[i]);
} }
return 0; return 0;
} }