Modified:
trunk/src/avbin.c
Log:
Free file and stream after closing.
Modified: trunk/src/avbin.c
==============================================================================
--- trunk/src/avbin.c (original)
+++ trunk/src/avbin.c Thu Dec 18 20:07:59 2008
@@ -143,6 +143,7 @@
free(file->packet);
}
av_close_input_file(file->context);
+ free(file);
}
AVbinResult avbin_seek_file(AVbinFile *file, AVbinTimestamp timestamp)
@@ -286,6 +287,7 @@
if (stream->frame)
av_free(stream->frame);
avcodec_close(stream->codec_context);
+ free(stream);
}
int avbin_read(AVbinFile *file, AVbinPacket *packet)