Revision: 71
Author: sucknblow
Date: 2006-06-25 12:08:24 -0700 (Sun, 25 Jun 2006)
ViewCVS: http://svn.sourceforge.net/pmplib/?rev=71&view=rev
Log Message:
-----------
Fix this crash when reading Ogg Vorbis tags:
*** glibc detected *** double free or corruption (!prev): 0x0000000000552a50 ***
Turns out that ov_clear closes the file for you - no need to do it explicitly.
Modified Paths:
--------------
trunk/lib/gmi/gmi_vorbis.c
Modified: trunk/lib/gmi/gmi_vorbis.c
===================================================================
--- trunk/lib/gmi/gmi_vorbis.c 2006-06-25 18:19:48 UTC (rev 70)
+++ trunk/lib/gmi/gmi_vorbis.c 2006-06-25 19:08:24 UTC (rev 71)
@@ -112,8 +112,10 @@
}
info->codec = PMPCODEC_VORBIS;
+
+ // Clear the decoders buffers, also closes fp.
ov_clear(&vf);
- fclose(fp);
+
return 0;
error_exit:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|