diff options
author | Chia-I Wu <[email protected]> | 2009-09-30 11:36:01 +0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-09-30 08:15:30 -0600 |
commit | 4b95481e951424e24c9ab817998ae50b54ab9f84 (patch) | |
tree | aba2f365ccdb62e74b53df094c6d60bf56d74c1f /src/gallium/state_trackers/egl | |
parent | dd81cc885c3d0619921a7de7e00618e412c05697 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/egl')
-rw-r--r-- | src/gallium/state_trackers/egl/egl_context.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; |