From: <za...@ke...> - 2008-02-12 21:32:07
|
CVS Root: /cvs/gstreamer Module: gst-plugins-bad Changes by: zaheer Date: Tue Feb 12 2008 21:32:13 UTC Log message: * sys/dvb/dvbbasebin.c: Fix leak of location string returned from gst_uri_get_location. Fixes bug #516114 Modified files: . : ChangeLog sys/dvb : dvbbasebin.c Links: http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/ChangeLog.diff?r1=1.3150&r2=1.3151 http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/gst-plugins-bad/sys/dvb/dvbbasebin.c.diff?r1=1.9&r2=1.10 ====Begin Diffs==== Index: ChangeLog =================================================================== RCS file: /cvs/gstreamer/gst-plugins-bad/ChangeLog,v retrieving revision 1.3150 retrieving revision 1.3151 diff -u -d -r1.3150 -r1.3151 --- ChangeLog 12 Feb 2008 21:01:10 -0000 1.3150 +++ ChangeLog 12 Feb 2008 21:31:53 -0000 1.3151 @@ -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...@sc...> * configure.ac: Index: dvbbasebin.c RCS file: /cvs/gstreamer/gst-plugins-bad/sys/dvb/dvbbasebin.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- dvbbasebin.c 8 Feb 2008 18:22:07 -0000 1.9 +++ dvbbasebin.c 12 Feb 2008 21:31:57 -0000 1.10 @@ -992,8 +992,13 @@ if (strcmp (protocol, "dvb") != 0) { ret = FALSE; } else { - ret = set_properties_for_channel (G_OBJECT (dvbbasebin), - gst_uri_get_location (uri)); + gchar *location = 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 */ |