From: Alan Hourihane Date: Thu, 14 Aug 2008 08:52:15 +0000 (+0100) Subject: check for winsys->destroy before calling X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=73467e1080d94e6d5cfb52f71c845c09a78adcd9;p=mesa.git check for winsys->destroy before calling --- 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 );