mirror of
https://github.com/vgmstream/vgmstream.git
synced 2024-11-12 01:30:49 +01:00
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:
parent
b44f87bd4b
commit
d7ea342328
@ -195,6 +195,7 @@ VGMSTREAM * init_vgmstream_aix(STREAMFILE *streamFile) {
|
||||
|
||||
vgmstream->codec_data = data;
|
||||
free(segment_offset);
|
||||
free(samples_in_segment);
|
||||
|
||||
return vgmstream;
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user