mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
Drive by leak fix when code spelunking
_cogl_shader_compile_real spews a warning when shader compilation fails if COGL_GL_DEBUG is defined. This warning is never freed. https://bugzilla.gnome.org/show_bug.cgi?id=672243 Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
c8f8dbec7e
commit
dc00c27249
@ -384,6 +384,7 @@ _cogl_shader_compile_real (CoglHandle handle,
|
|||||||
g_warning ("Failed to compile GLSL program:\nsrc:\n%s\nerror:\n%s\n",
|
g_warning ("Failed to compile GLSL program:\nsrc:\n%s\nerror:\n%s\n",
|
||||||
shader->source,
|
shader->source,
|
||||||
log);
|
log);
|
||||||
|
g_free (log);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user