diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | gst/mpegdemux/mpegtspacketizer.c | 5 | ||||
-rw-r--r-- | sys/dvb/gstdvbsrc.c | 2 |
3 files changed, 15 insertions, 0 deletions
@@ -1,3 +1,11 @@ +2008-11-04 Zaheer Abbas Merali <zaheerabbas at merali dot org> + + patch by: Sebastian Pölsterl + + * gst/mpegdemux/mpegtspacketizer.c: + * sys/dvb/gstdvbsrc.c: + Fix memleaks. + 2008-11-04 Stefan Kost <ensonic@users.sf.net> * ext/alsaspdif/Makefile.am: 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))) { diff --git a/sys/dvb/gstdvbsrc.c b/sys/dvb/gstdvbsrc.c index 6f656c89..1aa0d621 100644 --- a/sys/dvb/gstdvbsrc.c +++ b/sys/dvb/gstdvbsrc.c @@ -523,6 +523,8 @@ gst_dvbsrc_set_property (GObject * _object, guint prop_id, char **tmp; tmp = pids = g_strsplit (pid_string, ":", MAX_FILTERS); + if (pid_string) + g_free (pid_string); /* always add the PAT and CAT pids */ object->pids[0] = 0; |