From: Chia-I Wu Date: Wed, 30 Sep 2009 03:36:01 +0000 (+0800) Subject: st/egl: Fix a double free in drm_destroy_context. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b95481e951424e24c9ab817998ae50b54ab9f84;p=mesa.git st/egl: Fix a double free in drm_destroy_context. st_destroy_context has destroyed the pipe context for us. Signed-off-by: Chia-I Wu --- diff --git a/src/gallium/state_trackers/egl/egl_context.c b/src/gallium/state_trackers/egl/egl_context.c index 288186ad72e..e21a4a1095b 100644 --- a/src/gallium/state_trackers/egl/egl_context.c +++ b/src/gallium/state_trackers/egl/egl_context.c @@ -138,7 +138,6 @@ drm_destroy_context(_EGLDriver *drv, _EGLDisplay *dpy, _EGLContext *context) struct drm_context *c = lookup_drm_context(context); if (!_eglIsContextBound(&c->base)) { st_destroy_context(c->st); - c->pipe->destroy(c->pipe); free(c); } return EGL_TRUE;