[xiph-cvs] cvs commit: vorbis/lib time0.c
Michael Smith
msmith at xiph.org
Sat Mar 30 06:02:53 PST 2002
msmith 02/03/30 06:02:53
Modified: lib time0.c
Log:
Fix a small (4 byte per encode) memory leak.
Monty - there may be a better/cleaner way to do this, but it wasn't obvious
to me. (the memory is allocated in vorbisenc.c, this frees it in time0.c)
Revision Changes Path
1.12 +2 -1 vorbis/lib/time0.c
Index: time0.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/time0.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- time0.c 2001/12/20 01:00:30 1.11
+++ time0.c 2002/03/30 14:02:53 1.12
@@ -11,7 +11,7 @@
********************************************************************
function: time backend 0 (dummy)
- last mod: $Id: time0.c,v 1.11 2001/12/20 01:00:30 segher Exp $
+ last mod: $Id: time0.c,v 1.12 2002/03/30 14:02:53 msmith Exp $
********************************************************************/
@@ -36,6 +36,7 @@
return "";
}
static void time0_free_info(vorbis_info_time *i){
+ free(i); /* Dummy time mapping parameter */
}
static void time0_free_look(vorbis_look_time *i){
}
<p><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