mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
tsdemux: fix memleak of PCROffsetCurrent
https://bugzilla.gnome.org/show_bug.cgi?id=722145
This commit is contained in:
parent
6587e924f1
commit
4d957e53e4
1 changed files with 2 additions and 0 deletions
|
@ -100,6 +100,8 @@ flush_observations (MpegTSPacketizer2 * packetizer)
|
||||||
gint i;
|
gint i;
|
||||||
|
|
||||||
for (i = 0; i < packetizer->lastobsid; 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]);
|
g_free (packetizer->observations[i]);
|
||||||
packetizer->observations[i] = NULL;
|
packetizer->observations[i] = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue