check for winsys->destroy before calling

This commit is contained in:
Alan Hourihane 2008-08-14 09:52:15 +01:00
parent 19ff2326e9
commit 73467e1080

View file

@ -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 );