changeset 20137:d4e7b776da63

Free track->language before assigning new value
author reimar
date Mon, 09 Oct 2006 19:10:36 +0000
parents 61272e6d8f08
children f753fbd5ae66
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Mon Oct 09 18:56:16 2006 +0000
+++ b/libmpdemux/demux_mkv.c	Mon Oct 09 19:10:36 2006 +0000
@@ -1165,6 +1165,7 @@
           }
 
         case MATROSKA_ID_TRACKLANGUAGE:
+          free(track->language);
           track->language = ebml_read_utf8 (s, &l);
           if (track->language == NULL)
             goto err_out;