[xiph-commits] r10305 - trunk/theora/lib

giles at svn.xiph.org giles at svn.xiph.org
Wed Oct 26 13:42:35 PDT 2005


Author: giles
Date: 2005-10-26 13:42:34 -0700 (Wed, 26 Oct 2005)
New Revision: 10305

Modified:
   trunk/theora/lib/encoder_toplevel.c
Log:
Correct a bar malloc() call to use _ogg_malloc().


Modified: trunk/theora/lib/encoder_toplevel.c
===================================================================
--- trunk/theora/lib/encoder_toplevel.c	2005-10-26 20:24:56 UTC (rev 10304)
+++ trunk/theora/lib/encoder_toplevel.c	2005-10-26 20:42:34 UTC (rev 10305)
@@ -1121,8 +1121,8 @@
   op->bytes=oggpack_bytes(opb);
 
 #ifndef LIBOGG2
-  /* So we're expecting the application with free this? */
-  op->packet=malloc(oggpack_bytes(opb));
+  /* So we're expecting the application will free this? */
+  op->packet=_ogg_malloc(oggpack_bytes(opb));
   memcpy(op->packet, oggpack_get_buffer(opb), oggpack_bytes(opb));
   oggpack_writeclear(opb);
 #else



More information about the commits mailing list