diff options
author | Li Qiang <liq3ea@gmail.com> | 2016-12-26 21:23:45 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2016-12-27 15:55:39 +1000 |
commit | 6eb13f7a2dcf391ec9e19b4c2a79e68305f63c22 (patch) | |
tree | b2507f4fc2c57bc514eff5bccda2b10c841b91e8 | |
parent | 926b9b3460a48f6454d8bbe9e44313d86a65447f (diff) |
vrend: fix memory leak in int blit context
The 'blit_ctx->initialised' is not setted to true.
Every time init blit context, it will create a new
'blit_ctx->gl_context' thus causing a memory leak.
This patch avoid this.
Signed-off-by: Li Qiang <liq3ea@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
-rw-r--r-- | src/vrend_blitter.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c index 86c2061..035c409 100644 --- a/src/vrend_blitter.c +++ b/src/vrend_blitter.c @@ -361,6 +361,7 @@ static void vrend_renderer_init_blit_ctx(struct vrend_blitter_ctx *blit_ctx) return; } + blit_ctx->initialised = true; ctx_params.shared = true; ctx_params.major_ver = VREND_GL_VER_MAJOR; ctx_params.minor_ver = VREND_GL_VER_MINOR; |