gst/gsturi.c: Fix leak: g_strdown operates on the string in place, while g_ascii_strdown() returns a newly-allocated ...

Original commit message from CVS:
* gst/gsturi.c: (gst_uri_get_protocol):
Fix leak: g_strdown operates on the string in place, while
g_ascii_strdown() returns a newly-allocated string.
This commit is contained in:
Tim-Philipp Müller 2008-04-20 16:32:03 +00:00
parent 83fc25314e
commit 2109e33da1
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2008-04-20 Tim-Philipp Müller <tim at centricular dot net>
* gst/gsturi.c: (gst_uri_get_protocol):
Fix leak: g_strdown operates on the string in place, while
g_ascii_strdown() returns a newly-allocated string.
2008-04-20 Sebastian Dröge <slomo@circular-chaos.org>
* tools/gst-inspect.c: (print_uri_handler_info),

View file

@ -371,7 +371,7 @@ gst_uri_get_protocol (const gchar * uri)
colon = strstr (uri, "://");
return g_ascii_strdown (g_strndup (uri, colon - uri), -1);
return g_ascii_strdown (uri, colon - uri);
}
/**