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

conrad at svn.xiph.org conrad at svn.xiph.org
Thu Aug 4 23:43:14 PDT 2005


Author: conrad
Date: 2005-08-04 23:43:12 -0700 (Thu, 04 Aug 2005)
New Revision: 9701

Modified:
   trunk/theora/lib/encoder_toplevel.c
Log:
fix memory leak in theora_encoder_clear()
+ found with valgrind on tests/noop
+ tested against libogg. A cursory reading of libogg2 source in svn
suggests that this one-liner should work there too, however libtheora
does not currently configure against libogg2 anyway.


Modified: trunk/theora/lib/encoder_toplevel.c
===================================================================
--- trunk/theora/lib/encoder_toplevel.c	2005-08-05 06:30:52 UTC (rev 9700)
+++ trunk/theora/lib/encoder_toplevel.c	2005-08-05 06:43:12 UTC (rev 9701)
@@ -1188,6 +1188,7 @@
     ClearTmpBuffers(&cpi->pb);
     ClearPPInstance(&cpi->pp);
     
+    oggpackB_writeclear(cpi->oggbuffer);
     _ogg_free(cpi->oggbuffer);
     _ogg_free(cpi);
   }



More information about the commits mailing list