summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_avi.c
diff options
context:
space:
mode:
authorEwald Snel <esnel@users.sourceforge.net>2002-04-23 13:30:42 +0000
committerEwald Snel <esnel@users.sourceforge.net>2002-04-23 13:30:42 +0000
commit2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64 (patch)
tree41c61dbec58d9c610019cf4dade18416c6076d91 /src/demuxers/demux_avi.c
parent8cab88a56f0c9fcaa14ea197ad8a95c58024abfc (diff)
downloadxine-lib-2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64.tar.gz
xine-lib-2238f0536fa7bb4ad6d59ff38ed040dc4d81ff64.tar.bz2
Fix memory leaks by disposing input, demux and decoder plugins at exit
- add dispose() function to all decoder plugin structures CVS patchset: 1763 CVS date: 2002/04/23 13:30:42
Diffstat (limited to 'src/demuxers/demux_avi.c')
-rw-r--r--src/demuxers/demux_avi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/demuxers/demux_avi.c b/src/demuxers/demux_avi.c
index b768a6dc9..53a4a8cdc 100644
--- a/src/demuxers/demux_avi.c
+++ b/src/demuxers/demux_avi.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: demux_avi.c,v 1.79 2002/04/23 00:55:46 miguelfreitas Exp $
+ * $Id: demux_avi.c,v 1.80 2002/04/23 13:30:42 esnel Exp $
*
* demultiplexer for avi streams
*
@@ -228,6 +228,7 @@ static void AVI_close(avi_t *AVI)
#define ERR_EXIT(x) \
do { \
this->AVI_errno = x; \
+ free (AVI); \
return 0; \
} while(0)
@@ -974,6 +975,10 @@ static void demux_avi_stop (demux_plugin_t *this_gen) {
static void demux_avi_close (demux_plugin_t *this_gen) {
demux_avi_t *this = (demux_avi_t *) this_gen;
+
+ if (this->avi)
+ AVI_close (this->avi);
+
free(this);
}