changeset 6551 | a2f39cb9af62 |
parent 6045 | 9a7cc0f29430 |
child 7697 | 767d3c4153a1 |
--- a/misc/libtremor/tremor/vorbisfile.c Wed Jan 04 02:06:44 2012 +0100 +++ b/misc/libtremor/tremor/vorbisfile.c Fri Jan 06 01:51:04 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