fix lil' memory leaks

git-svn-id: https://vgmstream.svn.sourceforge.net/svnroot/vgmstream@535 51a99a44-fe44-0410-b1ba-c3e57ba2b86b
This commit is contained in:
halleyscometsw 2008-12-24 09:11:58 +00:00
parent b44f87bd4b
commit d7ea342328
2 changed files with 3 additions and 1 deletions

View File

@ -195,6 +195,7 @@ VGMSTREAM * init_vgmstream_aix(STREAMFILE *streamFile) {
vgmstream->codec_data = data;
free(segment_offset);
free(samples_in_segment);
return vgmstream;

View File

@ -57,7 +57,7 @@ int main(int argc, char ** argv) {
double loop_count = 2.0;
double fade_seconds = 10.0;
double fade_delay_seconds = 0.0;
while ((opt = getopt(argc, argv, "o:l:f:d:ipPcmxeEr:g")) != -1) {
switch (opt) {
case 'o':
@ -347,6 +347,7 @@ int main(int argc, char ** argv) {
}
close_vgmstream(s);
free(buf);
return 0;
}