diff -r f951c4b5b335 -r 1e8b7fc8f90d misc/libtremor/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