glsl: free str while returning error

https://bugzilla.gnome.org/show_bug.cgi?id=758039
This commit is contained in:
Vineeth TM 2015-11-13 10:56:10 +09:00 committed by Tim-Philipp Müller
parent 606e3dee98
commit d5c1ff4bf2

View file

@ -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);