summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-08-14 09:52:15 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-08-14 09:52:15 +0100
commit73467e1080d94e6d5cfb52f71c845c09a78adcd9 (patch)
treeb0f8e6a38c39ce14e9b5c93c6e5a8ae2e8475e94 /src
parent19ff2326e94a7a773bcb1dd9bfd22197b999daf9 (diff)
check for winsys->destroy before calling
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/i915simple/i915_context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915simple/i915_context.c b/src/gallium/drivers/i915simple/i915_context.c
index e3d19017b5..e2bf5ab678 100644
--- a/src/gallium/drivers/i915simple/i915_context.c
+++ b/src/gallium/drivers/i915simple/i915_context.c
@@ -45,7 +45,7 @@ static void i915_destroy( struct pipe_context *pipe )
draw_destroy( i915->draw );
- if(i915->winsys)
+ if(i915->winsys->destroy)
i915->winsys->destroy(i915->winsys);
FREE( i915 );