Author: ods15
Date: Wed Nov 15 11:28:10 2006
New Revision: 208
Modified:
trunk/libnut/demuxer.c
Log:
make the demuxer handle the info allocating and freeing
Modified: trunk/libnut/demuxer.c
============================================================
==================
--- trunk/libnut/demuxer.c (original)
+++ trunk/libnut/demuxer.c Wed Nov 15 11:28:10 2006
 -1414,11
+1414,17 
nut->alloc->free(nut->sc[i].sh.codec_specific);
nut->alloc->free(nut->sc[i].pts_cache);
}
+ for (i = 0; i < nut->info_count; i++) {
+ int j;
+ for (j = 0; j < nut->info[i].count; j++)
nut->alloc->free(nut->info[i].fields[j].data);
+ nut->alloc->free(nut->info[i].fields);
+ }
nut->alloc->free(nut->syncpoints.s);
nut->alloc->free(nut->syncpoints.pts);
nut->alloc->free(nut->syncpoints.eor);
nut->alloc->free(nut->sc);
+ nut->alloc->free(nut->info);
nut->alloc->free(nut->tb);
nut->alloc->free(nut->seek_state);
free_buffer(nut->i);
_______________________________________________
NUT-devel mailing list
NUT-devel mplayerhq.hu
http://lists.mplayerhq.hu/mailman/listinfo/nut-devel
|