From: Brian Date: Mon, 10 Dec 2007 03:45:20 +0000 (-0700) Subject: added null ptr check in draw_destroy() for rasterizer stage X-Git-Tag: 062012170305~17580^2~390^2~3237 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=04e88f469cf6c338ba04640738865b59e160c3d4;p=profile%2Fivi%2Fmesa.git added null ptr check in draw_destroy() for rasterizer stage --- diff --git a/src/mesa/pipe/draw/draw_context.c b/src/mesa/pipe/draw/draw_context.c index 6792a06..33727e6 100644 --- a/src/mesa/pipe/draw/draw_context.c +++ b/src/mesa/pipe/draw/draw_context.c @@ -102,7 +102,8 @@ void draw_destroy( struct draw_context *draw ) draw->pipeline.cull->destroy( draw->pipeline.cull ); draw->pipeline.feedback->destroy( draw->pipeline.feedback ); draw->pipeline.validate->destroy( draw->pipeline.validate ); - draw->pipeline.rasterize->destroy( draw->pipeline.rasterize ); + if (draw->pipeline.rasterize) + draw->pipeline.rasterize->destroy( draw->pipeline.rasterize ); FREE( draw->vcache.vertex[0] ); /* Frees all the vertices. */ FREE( draw ); }