changeset 35292:29be73f9a8ea

Fix memleaks on error and remove useless "break".
author reimar
date Sat, 10 Nov 2012 12:33:14 +0000
parents ef57345fe3e8
children b3a1fde4b842
files libmpdemux/demux_film.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_film.c	Sat Nov 10 12:29:42 2012 +0000
+++ b/libmpdemux/demux_film.c	Sat Nov 10 12:33:14 2012 +0000
@@ -443,8 +443,9 @@
     default:
       mp_msg(MSGT_DEMUX, MSGL_ERR, "Unrecognized FILM header chunk: %08X\n",
         chunk_type);
+      free(film_data->chunks);
+      free(film_data);
       return NULL;
-      break;
     }
   }