summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoonhee Choi <mh0310.choi@samsung.com>2018-06-22 05:32:39 (GMT)
committerMoonhee Choi <mh0310.choi@samsung.com>2018-06-22 05:32:39 (GMT)
commit9fe8ce93e843b8fcc0d9169067c337e90692f81c (patch)
tree01f4df094c4877b5528166de0ea6d6193275bfd2
parent477bfa74fdcd3a59be2235a6a6e0681464cf909a (diff)
downloadcairo-tizen_4.0.zip
cairo-tizen_4.0.tar.gz
cairo-tizen_4.0.tar.bz2
- migration from slp git (Tizen3.0) - commit : 299e8ce1cf69d5b9fb3197953e7df1f1865b07d5 - Problem : cairo gl device create/destory make memory leak - Cause & Measure : cairo_gl_context_init create fill_rectangles_shader but do not delete it Signed-off-by: Moonhee Choi <mh0310.choi@samsung.com> Change-Id: Id407b804918a60b0a5fe04a08865d06e7c3eb656
-rw-r--r--src/cairo-gl-shaders.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cairo-gl-shaders.c b/src/cairo-gl-shaders.c
index b5796f7..cfc8540 100644
--- a/src/cairo-gl-shaders.c
+++ b/src/cairo-gl-shaders.c
@@ -302,6 +302,13 @@ _cairo_gl_context_fini_shaders (cairo_gl_context_t *ctx)
ctx->dispatch.DeleteShader (ctx->vertex_shaders[i]);
}
+ if (ctx->fill_rectangles_shader.program ||
+ ctx->fill_rectangles_shader.fragment_shader) {
+ _cairo_gl_shader_fini(ctx, &ctx->fill_rectangles_shader);
+ ctx->fill_rectangles_shader.fragment_shader = 0;
+ ctx->fill_rectangles_shader.program = 0;
+ }
+
_cairo_cache_fini (&ctx->shaders);
}