mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
sys/dvb/dvbbasebin.c: Fix leak of location string returned from gst_uri_get_location.
Original commit message from CVS: * sys/dvb/dvbbasebin.c: Fix leak of location string returned from gst_uri_get_location. Fixes bug #516114
This commit is contained in:
parent
1a74d7922a
commit
6c1278d35c
2 changed files with 13 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2008-02-12 Zaheer Abbas Merali <zaheerabbas at merali dot org>
|
||||||
|
|
||||||
|
* sys/dvb/dvbbasebin.c:
|
||||||
|
Fix leak of location string returned from gst_uri_get_location.
|
||||||
|
Fixes bug #516114
|
||||||
|
|
||||||
2008-02-12 David Schleef <ds@schleef.org>
|
2008-02-12 David Schleef <ds@schleef.org>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -992,8 +992,13 @@ dvb_base_bin_uri_set_uri (GstURIHandler * handler, const gchar * uri)
|
||||||
if (strcmp (protocol, "dvb") != 0) {
|
if (strcmp (protocol, "dvb") != 0) {
|
||||||
ret = FALSE;
|
ret = FALSE;
|
||||||
} else {
|
} else {
|
||||||
ret = set_properties_for_channel (G_OBJECT (dvbbasebin),
|
gchar *location = gst_uri_get_location (uri);
|
||||||
gst_uri_get_location (uri));
|
|
||||||
|
if (location != NULL) {
|
||||||
|
ret = set_properties_for_channel (G_OBJECT (dvbbasebin), location);
|
||||||
|
g_free (location);
|
||||||
|
} else
|
||||||
|
ret = FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* here is where we parse channels.conf */
|
/* here is where we parse channels.conf */
|
||||||
|
|
Loading…
Reference in a new issue