mpegvideoparser: fix memory leak

This commit is contained in:
Vincent Penquerc'h 2012-01-12 14:34:25 +00:00
parent 3942c8c753
commit b6edb1a03a

View file

@ -332,8 +332,10 @@ gst_mpeg_video_parse (const guint8 * data, gsize size, guint offset)
codoffsize->offset = gst_byte_reader_get_pos (&br) + offset;
rsize = gst_byte_reader_get_remaining (&br);
if (rsize <= 0)
if (rsize <= 0) {
g_free (codoffsize);
break;
}
off = scan_for_start_codes (&br, 0, rsize);