diff options
author | Alan Hourihane <[email protected]> | 2008-08-14 09:52:15 +0100 |
---|---|---|
committer | Alan Hourihane <[email protected]> | 2008-08-14 09:52:15 +0100 |
commit | 73467e1080d94e6d5cfb52f71c845c09a78adcd9 (patch) | |
tree | b0f8e6a38c39ce14e9b5c93c6e5a8ae2e8475e94 /src | |
parent | 19ff2326e94a7a773bcb1dd9bfd22197b999daf9 (diff) |
check for winsys->destroy before calling
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/i915simple/i915_context.c | 2 |
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 e3d19017b5d..e2bf5ab678f 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 ); |