diff libmpdemux/demux_film.c @ 35292:29be73f9a8ea

Fix memleaks on error and remove useless "break".
author reimar
date Sat, 10 Nov 2012 12:33:14 +0000
parents 8fa2f43cb760
children 2b211b058ee2
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;
     }
   }