[xiph-commits] r14227 - in trunk/speex: include/speex libspeex

jm at svn.xiph.org jm at svn.xiph.org
Sun Nov 25 02:00:58 PST 2007


Author: jm
Date: 2007-11-25 02:00:57 -0800 (Sun, 25 Nov 2007)
New Revision: 14227

Modified:
   trunk/speex/include/speex/speex_header.h
   trunk/speex/libspeex/speex_header.c
Log:
added speex_header_free() for poor Windows lusers with weird libc behaviour


Modified: trunk/speex/include/speex/speex_header.h
===================================================================
--- trunk/speex/include/speex/speex_header.h	2007-11-25 06:06:34 UTC (rev 14226)
+++ trunk/speex/include/speex/speex_header.h	2007-11-25 10:00:57 UTC (rev 14227)
@@ -83,6 +83,9 @@
 /** Creates a SpeexHeader from a packet */
 SpeexHeader *speex_packet_to_header(char *packet, int size);
 
+/** Frees the memory allocated by either speex_header_to_packet() or speex_packet_to_header() */
+void speex_header_free(void *ptr);
+
 #ifdef __cplusplus
 }
 #endif

Modified: trunk/speex/libspeex/speex_header.c
===================================================================
--- trunk/speex/libspeex/speex_header.c	2007-11-25 06:06:34 UTC (rev 14226)
+++ trunk/speex/libspeex/speex_header.c	2007-11-25 10:00:57 UTC (rev 14227)
@@ -181,3 +181,8 @@
    return le_header;
 
 }
+
+void speex_header_free(void *ptr)
+{
+   speex_free(ptr);
+}



More information about the commits mailing list