projects
/
fishladder.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
art/sound/textures
[fishladder.git]
/
vg
/
vg_audio.h
diff --git
a/vg/vg_audio.h
b/vg/vg_audio.h
index f154983ff5daf1ca9c7d90a71567ff0d321c81c6..330be30a17319588d572247737d2ff3aa3231905 100644
(file)
--- a/
vg/vg_audio.h
+++ b/
vg/vg_audio.h
@@
-109,6
+109,7
@@
float *sfx_vorbis_stream( const unsigned char *data, int len, int channels, uint
if( !buffer )
{
+ stb_vorbis_close( pv );
vg_error( "out of memory while allocating sound resource\n" );
return NULL;
}
@@
-120,6
+121,7
@@
float *sfx_vorbis_stream( const unsigned char *data, int len, int channels, uint
length_samples = read_samples;
}
+ stb_vorbis_close( pv );
*samples = length_samples;
return buffer;
}