mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
parent
f213321083
commit
43866270ef
1 changed files with 3 additions and 1 deletions
|
@ -256,8 +256,10 @@ gst_gl_shadervariables_parse (GstGLShader * shader, char *variables,
|
||||||
if (arraysize) {
|
if (arraysize) {
|
||||||
char *s = g_malloc (strlen (vartype) + 32);
|
char *s = g_malloc (strlen (vartype) + 32);
|
||||||
sprintf (s, "%s[%d]", vartype, arraysize);
|
sprintf (s, "%s[%d]", vartype, arraysize);
|
||||||
if (strcmp (t, s))
|
if (strcmp (t, s)) {
|
||||||
|
g_free (s);
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (strcmp (t, vartype))
|
if (strcmp (t, vartype))
|
||||||
goto parse_error;
|
goto parse_error;
|
||||||
|
|
Loading…
Reference in a new issue