mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-21 15:56:42 +00:00
mpegvideoparser: fix memory leak
This commit is contained in:
parent
3942c8c753
commit
b6edb1a03a
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue