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 Matthew Waters
parent a22f085eac
commit 4c9ac5e474

View file

@ -258,9 +258,11 @@ 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);