this version of tremor requires a nil check on close_func
https://svn.xiph.org/trunk/Tremor/vorbisfile.c
--- a/misc/libtremor/tremor/vorbisfile.c Sat Nov 03 18:01:38 2012 +0100
+++ b/misc/libtremor/tremor/vorbisfile.c Sat Nov 03 19:16:05 2012 +0100
@@ -739,7 +739,8 @@
if(vf->offsets)_ogg_free(vf->offsets);
ogg_sync_destroy(vf->oy);
- if(vf->datasource)(vf->callbacks.close_func)(vf->datasource);
+ if(vf->datasource && vf->callbacks.close_func)
+ (vf->callbacks.close_func)(vf->datasource);
memset(vf,0,sizeof(*vf));
}
#ifdef DEBUG_LEAKS