[xiph-cvs] cvs commit: ogg/src bytewise.c stream.c
Monty
xiphmont at xiph.org
Thu Mar 27 20:51:33 PST 2003
xiphmont 03/03/27 23:51:33
Modified: src Tag: libogg2-zerocopy bytewise.c stream.c
Log:
Eliminated all memory leaks in toplevel unit tests, found/corrected
one leak in libogg2.
At this stage, there are no known issues in libogg2... but we've not
put it in production yet :-)
Monty
Revision Changes Path
No revision
<p>No revision
<p>1.1.2.6 +2 -2 ogg/src/Attic/bytewise.c
Index: bytewise.c
===================================================================
RCS file: /usr/local/cvsroot/ogg/src/Attic/bytewise.c,v
retrieving revision 1.1.2.5
retrieving revision 1.1.2.6
diff -u -r1.1.2.5 -r1.1.2.6
--- bytewise.c 26 Mar 2003 23:49:26 -0000 1.1.2.5
+++ bytewise.c 28 Mar 2003 04:51:33 -0000 1.1.2.6
@@ -11,7 +11,7 @@
********************************************************************
function: byte-aligned access; array-like abstraction over buffers
- last mod: $Id: bytewise.c,v 1.1.2.5 2003/03/26 23:49:26 xiphmont Exp $
+ last mod: $Id: bytewise.c,v 1.1.2.6 2003/03/28 04:51:33 xiphmont Exp $
********************************************************************/
@@ -96,7 +96,7 @@
ogg_reference *oggbyte_return_and_reset(oggbyte_buffer *b){
if(!b->external){
ogg_reference *ret=b->baseref;
- oggbyte_init(b,0,b->owner);
+ memset(b,0,sizeof(*b));
return(ret);
}
return(NULL);
<p><p>1.1.2.10 +3 -1 ogg/src/Attic/stream.c
Index: stream.c
===================================================================
RCS file: /usr/local/cvsroot/ogg/src/Attic/stream.c,v
retrieving revision 1.1.2.9
retrieving revision 1.1.2.10
diff -u -r1.1.2.9 -r1.1.2.10
--- stream.c 27 Mar 2003 21:38:16 -0000 1.1.2.9
+++ stream.c 28 Mar 2003 04:51:33 -0000 1.1.2.10
@@ -12,7 +12,7 @@
function: code raw packets into framed Ogg logical stream and
decode Ogg logical streams back into raw packets
- last mod: $Id: stream.c,v 1.1.2.9 2003/03/27 21:38:16 xiphmont Exp $
+ last mod: $Id: stream.c,v 1.1.2.10 2003/03/28 04:51:33 xiphmont Exp $
********************************************************************/
@@ -104,9 +104,11 @@
if(os->header_tail){
ogg_reference *ret=oggbyte_return_and_reset(&os->header_build);
os->header_head=ogg_buffer_cat(os->header_head,ret);
+ if(nextcomplete)oggbyte_init(&os->header_build,0,os->bufferpool);
}else{
os->header_tail=oggbyte_return_and_reset(&os->header_build);
os->header_head=ogg_buffer_walk(os->header_tail);
+ if(nextcomplete)oggbyte_init(&os->header_build,0,os->bufferpool);
}
os->lacing_fill=0;
os->body_fill=0;
<p><p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the commits
mailing list