projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd81cc8
)
st/egl: Fix a double free in drm_destroy_context.
author
Chia-I Wu
<olvaffe@gmail.com>
Wed, 30 Sep 2009 03:36:01 +0000
(11:36 +0800)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/egl/egl_context.c
b/src/gallium/state_trackers/egl/egl_context.c
index 288186ad72e81da345c627f1d7440e21348cb9e8..e21a4a1095b47700fc498ec9adb05b297b8966a6 100644
(file)
--- 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;