tsdemux: fix memleak of PCROffsetCurrent

https://bugzilla.gnome.org/show_bug.cgi?id=722145
This commit is contained in:
Andrey Utkin 2014-01-14 02:19:12 +02:00 committed by Sebastian Dröge
parent 6587e924f1
commit 4d957e53e4

View file

@ -100,6 +100,8 @@ flush_observations (MpegTSPacketizer2 * packetizer)
gint i;
for (i = 0; i < packetizer->lastobsid; i++) {
if (packetizer->observations[i]->current)
g_slice_free (PCROffsetCurrent, packetizer->observations[i]->current);
g_free (packetizer->observations[i]);
packetizer->observations[i] = NULL;
}