summaryrefslogtreecommitdiffstats
path: root/gst/mpegdemux
diff options
context:
space:
mode:
authorSebastian Pölsterl <marduk@k-d-w.org>2008-11-04 08:24:10 +0000
committerZaheer Abbas Merali <zaheerabbas@merali.org>2008-11-04 08:24:10 +0000
commite199d5b5874a5f0c20351d03823dd9aa9a5ac290 (patch)
treeaaabea9b975a4642760aac8affd5b5be76ad004f /gst/mpegdemux
parentee126d1c7bfbe773b4f6c17116764a5b045730a2 (diff)
downloadgst-plugins-bad-e199d5b5874a5f0c20351d03823dd9aa9a5ac290.tar.gz
gst-plugins-bad-e199d5b5874a5f0c20351d03823dd9aa9a5ac290.tar.bz2
gst-plugins-bad-e199d5b5874a5f0c20351d03823dd9aa9a5ac290.zip
gst/mpegdemux/mpegtsparse.c: Fix memleak.
Original commit message from CVS: patch by: Sebastian Pölsterl * gst/mpegdemux/mpegtsparse.c: Fix memleak.
Diffstat (limited to 'gst/mpegdemux')
-rw-r--r--gst/mpegdemux/mpegtsparse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gst/mpegdemux/mpegtsparse.c b/gst/mpegdemux/mpegtsparse.c
index 18a6b435..bb14fb4d 100644
--- a/gst/mpegdemux/mpegtsparse.c
+++ b/gst/mpegdemux/mpegtsparse.c
@@ -250,6 +250,8 @@ mpegts_parse_reset (MpegTSParse * parse)
/* PAT */
g_hash_table_insert (parse->psi_pids,
GINT_TO_POINTER (0), GINT_TO_POINTER (1));
+ if (parse->pat != NULL)
+ gst_structure_free (parse->pat);
parse->pat = NULL;
/* pmt pids will be added and removed dynamically */