mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
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:
parent
a14e8e07df
commit
eca13dce9b
3 changed files with 15 additions and 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>
|
2008-11-04 Stefan Kost <ensonic@users.sf.net>
|
||||||
|
|
||||||
* ext/alsaspdif/Makefile.am:
|
* ext/alsaspdif/Makefile.am:
|
||||||
|
|
|
@ -1018,6 +1018,11 @@ mpegts_packetizer_parse_nit (MpegTSPacketizer * packetizer,
|
||||||
gst_structure_set (transport, "delivery", GST_TYPE_STRUCTURE,
|
gst_structure_set (transport, "delivery", GST_TYPE_STRUCTURE,
|
||||||
delivery_structure, NULL);
|
delivery_structure, NULL);
|
||||||
}
|
}
|
||||||
|
/* free the temporary delivery structure */
|
||||||
|
if (delivery_structure != NULL) {
|
||||||
|
gst_structure_free (delivery_structure);
|
||||||
|
delivery_structure = NULL;
|
||||||
|
}
|
||||||
if ((delivery =
|
if ((delivery =
|
||||||
gst_mpeg_descriptor_find (mpegdescriptor,
|
gst_mpeg_descriptor_find (mpegdescriptor,
|
||||||
DESC_DTG_LOGICAL_CHANNEL))) {
|
DESC_DTG_LOGICAL_CHANNEL))) {
|
||||||
|
|
|
@ -523,6 +523,8 @@ gst_dvbsrc_set_property (GObject * _object, guint prop_id,
|
||||||
char **tmp;
|
char **tmp;
|
||||||
|
|
||||||
tmp = pids = g_strsplit (pid_string, ":", MAX_FILTERS);
|
tmp = pids = g_strsplit (pid_string, ":", MAX_FILTERS);
|
||||||
|
if (pid_string)
|
||||||
|
g_free (pid_string);
|
||||||
|
|
||||||
/* always add the PAT and CAT pids */
|
/* always add the PAT and CAT pids */
|
||||||
object->pids[0] = 0;
|
object->pids[0] = 0;
|
||||||
|
|
Loading…
Reference in a new issue