mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
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:
parent
83fc25314e
commit
2109e33da1
2 changed files with 7 additions and 1 deletions
|
@ -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),
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue