Fix memleaks.

Original commit message from CVS:
patch by: Sebastian Pölsterl
* gst/mpegdemux/mpegtspacketizer.c:
* sys/dvb/gstdvbsrc.c:
Fix memleaks.
This commit is contained in:
Sebastian Pölsterl 2008-11-04 17:25:09 +00:00 committed by Zaheer Abbas Merali
parent a14e8e07df
commit eca13dce9b
3 changed files with 15 additions and 0 deletions

View file

@ -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:

View file

@ -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))) {

View file

@ -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;