st/egl: Fix a double free in drm_destroy_context.
authorChia-I Wu <olvaffe@gmail.com>
Wed, 30 Sep 2009 03:36:01 +0000 (11:36 +0800)
committerBrian Paul <brianp@vmware.com>
Wed, 30 Sep 2009 14:15:30 +0000 (08:15 -0600)
st_destroy_context has destroyed the pipe context for us.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
src/gallium/state_trackers/egl/egl_context.c

index 288186ad72e81da345c627f1d7440e21348cb9e8..e21a4a1095b47700fc498ec9adb05b297b8966a6 100644 (file)
@@ -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;