mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
tsdemux: Fix leak of PCROffsetGroup
https://bugzilla.gnome.org/show_bug.cgi?id=722462
This commit is contained in:
parent
dfd23a3182
commit
0caa4cdfd8
1 changed files with 9 additions and 0 deletions
|
@ -94,12 +94,21 @@ get_pcr_table (MpegTSPacketizer2 * packetizer, guint16 pid)
|
|||
return res;
|
||||
}
|
||||
|
||||
static void
|
||||
pcr_offset_group_free (PCROffsetGroup * group)
|
||||
{
|
||||
g_free (group->values);
|
||||
g_slice_free (PCROffsetGroup, group);
|
||||
}
|
||||
|
||||
static void
|
||||
flush_observations (MpegTSPacketizer2 * packetizer)
|
||||
{
|
||||
gint i;
|
||||
|
||||
for (i = 0; i < packetizer->lastobsid; i++) {
|
||||
g_list_free_full (packetizer->observations[i]->groups,
|
||||
(GDestroyNotify) pcr_offset_group_free);
|
||||
if (packetizer->observations[i]->current)
|
||||
g_slice_free (PCROffsetCurrent, packetizer->observations[i]->current);
|
||||
g_free (packetizer->observations[i]);
|
||||
|
|
Loading…
Reference in a new issue