mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-24 01:24:20 +00:00
glsl: free str while returning error
https://bugzilla.gnome.org/show_bug.cgi?id=758039
This commit is contained in:
parent
a22f085eac
commit
4c9ac5e474
1 changed files with 3 additions and 1 deletions
|
@ -258,8 +258,10 @@ gst_glsl_version_profile_from_string (const gchar * string,
|
||||||
/* skip possible #version prefix */
|
/* skip possible #version prefix */
|
||||||
if (str[0] == '#') {
|
if (str[0] == '#') {
|
||||||
if (!(version_s =
|
if (!(version_s =
|
||||||
(gchar *) _check_valid_version_preprocessor_string (version_s)))
|
(gchar *) _check_valid_version_preprocessor_string (version_s))) {
|
||||||
|
g_free (str);
|
||||||
goto error;
|
goto error;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
version_s = g_strstrip (version_s);
|
version_s = g_strstrip (version_s);
|
||||||
|
|
Loading…
Reference in a new issue