mpegtsdemux: fix PAT and PMT info-related object leaks

This commit is contained in:
Tim-Philipp Müller 2011-01-07 02:10:33 +00:00
parent 6b9e2628b7
commit 89fed534e8
2 changed files with 2 additions and 0 deletions

View file

@ -219,4 +219,5 @@ mpegts_pmt_info_add_stream (MpegTsPmtInfo * pmt_info,
g_value_init (&v, G_TYPE_OBJECT);
g_value_take_object (&v, stream);
g_value_array_append (pmt_info->streams, &v);
g_value_unset (&v);
}

View file

@ -3137,6 +3137,7 @@ mpegts_demux_build_pat_info (GstMpegTSDemux * demux)
g_value_init (&v, G_TYPE_OBJECT);
g_value_take_object (&v, info_obj);
g_value_array_append (vals, &v);
g_value_unset (&v);
}
return vals;
}