mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
glsl: free str while returning error
https://bugzilla.gnome.org/show_bug.cgi?id=758039
This commit is contained in:
parent
606e3dee98
commit
d5c1ff4bf2
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 */
|
||||
if (str[0] == '#') {
|
||||
if (!(version_s =
|
||||
(gchar *) _check_valid_version_preprocessor_string (version_s)))
|
||||
(gchar *) _check_valid_version_preprocessor_string (version_s))) {
|
||||
g_free (str);
|
||||
goto error;
|
||||
}
|
||||
}
|
||||
|
||||
version_s = g_strstrip (version_s);
|
||||
|
|
Loading…
Reference in a new issue