misc/libtremor/tremor/vorbisfile.c
changeset 7941 1e8b7fc8f90d
parent 7859 519d5bc91dd3
--- 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