[cogl/cogl-1.16] texture-rectangle: Initialize is_foreign
- From: Neil Roberts <nroberts src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cogl/cogl-1.16] texture-rectangle: Initialize is_foreign
- Date: Mon, 26 Aug 2013 22:19:56 +0000 (UTC)
commit af8ea69b7fcde1da5320840ab24e4f38af31e7f3
Author: Damien Lespiau <damien lespiau intel com>
Date: Mon Aug 26 21:51:55 2013 +0100
texture-rectangle: Initialize is_foreign
So we don't read an initializes value later on. Caught by valgrind:
Conditional jump or move depends on uninitialised value(s)
_cogl_object_texture_rectangle_indirect_free (cogl-texture-rectangle.c:105)
_cogl_object_context_indirect_free (cogl-context.c:453)
...
main (text.c:149)
Signed-off-by: Damien Lespiau <damien lespiau intel com>
Reviewed-by: Neil Roberts <neil linux intel com>
(cherry picked from commit 90415aae9495749a2a9e85fb17425a3c7f6a08c8)
cogl/cogl-texture-rectangle.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/cogl/cogl-texture-rectangle.c b/cogl/cogl-texture-rectangle.c
index 8d25fb8..80b627a 100644
--- a/cogl/cogl-texture-rectangle.c
+++ b/cogl/cogl-texture-rectangle.c
@@ -174,6 +174,7 @@ _cogl_texture_rectangle_create_base (CoglContext *ctx,
_cogl_texture_init (tex, ctx, width, height, &cogl_texture_rectangle_vtable);
tex_rect->gl_texture = 0;
+ tex_rect->is_foreign = FALSE;
/* We default to GL_LINEAR for both filters */
tex_rect->gl_legacy_texobj_min_filter = GL_LINEAR;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]