From: Kristian Høgsberg Date: Thu, 29 Jul 2010 18:48:13 +0000 (-0400) Subject: x11: Dont use buffers after free() X-Git-Tag: 0.85.0~907 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f2e67725efba16abe1558b6e3775b02545f110e;p=platform%2Fupstream%2Fweston.git x11: Dont use buffers after free() --- diff --git a/compositor-x11.c b/compositor-x11.c index 3cb73b4..6679e20 100644 --- a/compositor-x11.c +++ b/compositor-x11.c @@ -418,13 +418,12 @@ x11_compositor_create_output(struct x11_compositor *c, int width, int height) attribs[1] = reply->width; attribs[3] = reply->height; attribs[5] = buffers[0].pitch / 4; - free(reply); - output->image = eglCreateImageKHR(c->base.display, c->base.context, EGL_DRM_IMAGE_MESA, (EGLClientBuffer) buffers[0].name, attribs); + free(reply); glGenRenderbuffers(1, &output->rbo); glBindRenderbuffer(GL_RENDERBUFFER, output->rbo);