From 4b95481e951424e24c9ab817998ae50b54ab9f84 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Wed, 30 Sep 2009 11:36:01 +0800 Subject: [PATCH] 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 --- src/gallium/state_trackers/egl/egl_context.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/gallium/state_trackers/egl/egl_context.c b/src/gallium/state_trackers/egl/egl_context.c index 288186a..e21a4a1 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; -- 2.7.4