[cogl/cogl-1.8] Drive by leak fix when code spelunking
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.8] Drive by leak fix when code spelunking
- Date: Fri, 16 Mar 2012 16:46:09 +0000 (UTC)
commit e012d5f06f12ddeed4b4331e159013b6b1859382
Author: Ray Strode <rstrode redhat com>
Date: Fri Mar 16 12:27:55 2012 -0400
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>
(cherry picked from commit dc00c2724998c422dcd597b87f222553e67f3801)
cogl/cogl-shader.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-shader.c b/cogl/cogl-shader.c
index cb70976..b6ed453 100644
--- a/cogl/cogl-shader.c
+++ b/cogl/cogl-shader.c
@@ -385,6 +385,7 @@ _cogl_shader_compile_real (CoglHandle handle,
g_warning ("Failed to compile GLSL program:\nsrc:\n%s\nerror:\n%s\n",
shader->source,
log);
+ g_free (log);
}
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]