[MPlayer-cvslog] r35386 - trunk/libmpdemux/demux_film.c

reimar subversion at mplayerhq.hu
Sat Nov 10 13:33:15 CET 2012


Author: reimar
Date: Sat Nov 10 13:33:14 2012
New Revision: 35386

Log:
Fix memleaks on error and remove useless "break".

Modified:
   trunk/libmpdemux/demux_film.c

Modified: trunk/libmpdemux/demux_film.c
==============================================================================
--- trunk/libmpdemux/demux_film.c	Sat Nov 10 13:29:42 2012	(r35385)
+++ trunk/libmpdemux/demux_film.c	Sat Nov 10 13:33:14 2012	(r35386)
@@ -443,8 +443,9 @@ static demuxer_t* demux_open_film(demuxe
     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;
     }
   }
 


More information about the MPlayer-cvslog mailing list