[xiph-commits] r12743 - experimental/j/theora-mashup/lib/dec
j at svn.xiph.org
j at svn.xiph.org
Mon Mar 12 16:11:32 PDT 2007
Author: j
Date: 2007-03-12 16:11:30 -0700 (Mon, 12 Mar 2007)
New Revision: 12743
Modified:
experimental/j/theora-mashup/lib/dec/apiwrapper.c
Log:
- only fee memory for decoder,
whatever needs to be freed for the encoder is still missing
Modified: experimental/j/theora-mashup/lib/dec/apiwrapper.c
===================================================================
--- experimental/j/theora-mashup/lib/dec/apiwrapper.c 2007-03-12 22:08:49 UTC (rev 12742)
+++ experimental/j/theora-mashup/lib/dec/apiwrapper.c 2007-03-12 23:11:30 UTC (rev 12743)
@@ -48,11 +48,15 @@
}
void theora_clear(theora_state *_td){
- if(_td->i!=NULL){
- theora_info_clear(_td->i);
- _ogg_free(_td->i);
- _td->i=NULL;
- }
+ if(_td->i!=NULL)
+ if(_td->internal_encode==NULL) {
+ theora_info_clear(_td->i);
+ _ogg_free(_td->i);
+ _td->i=NULL;
+ }
+ else {
+ //FIXME: what needs to be freed if theora_state was created by encoder
+ }
}
static void theora_info2th_info(th_info *_info,const theora_info *_ci){
More information about the commits
mailing list