# HG changeset patch
# User koda
# Date 1351966565 -3600
# Node ID 1e8b7fc8f90d88ef2e9184ba796b3f7568c8cdd6
# Parent  f951c4b5b33597a3e924b700468d79d7cf207eb7
this version of tremor requires a nil check on close_func

https://svn.xiph.org/trunk/Tremor/vorbisfile.c

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