diff options
author | Sebastian Pölsterl <marduk@k-d-w.org> | 2008-11-04 17:25:09 +0000 |
---|---|---|
committer | Zaheer Abbas Merali <zaheerabbas@merali.org> | 2008-11-04 17:25:09 +0000 |
commit | eca13dce9b09fa3d97ef0fe1c925ea1edb0525b7 (patch) | |
tree | ecdd254b47c7ab7bdf5aef26358729636bf0a63d /gst | |
parent | a14e8e07df0b3be5a3a444f2ba3261fbec4bcdcc (diff) | |
download | gst-plugins-bad-eca13dce9b09fa3d97ef0fe1c925ea1edb0525b7.tar.gz gst-plugins-bad-eca13dce9b09fa3d97ef0fe1c925ea1edb0525b7.tar.bz2 gst-plugins-bad-eca13dce9b09fa3d97ef0fe1c925ea1edb0525b7.zip |
Fix memleaks.
Original commit message from CVS:
patch by: Sebastian Pölsterl
* gst/mpegdemux/mpegtspacketizer.c:
* sys/dvb/gstdvbsrc.c:
Fix memleaks.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/mpegdemux/mpegtspacketizer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/mpegdemux/mpegtspacketizer.c b/gst/mpegdemux/mpegtspacketizer.c index 7997c843..4f06e99f 100644 --- a/gst/mpegdemux/mpegtspacketizer.c +++ b/gst/mpegdemux/mpegtspacketizer.c @@ -1018,6 +1018,11 @@ mpegts_packetizer_parse_nit (MpegTSPacketizer * packetizer, gst_structure_set (transport, "delivery", GST_TYPE_STRUCTURE, delivery_structure, NULL); } + /* free the temporary delivery structure */ + if (delivery_structure != NULL) { + gst_structure_free (delivery_structure); + delivery_structure = NULL; + } if ((delivery = gst_mpeg_descriptor_find (mpegdescriptor, DESC_DTG_LOGICAL_CHANNEL))) { |