From 78e0cdd0871fd24a68867378ca725cd7d1297065 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Sat, 14 Aug 2010 22:20:22 +0200 Subject: [PATCH] draw: fix crash in draw_llvm_destroy https://bugs.freedesktop.org/show_bug.cgi?id=29578 --- src/gallium/auxiliary/draw/draw_context.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 995b675..cb447ce 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -135,7 +135,8 @@ void draw_destroy( struct draw_context *draw ) draw_vs_destroy( draw ); draw_gs_destroy( draw ); #ifdef HAVE_LLVM - draw_llvm_destroy( draw->llvm ); + if (draw->llvm) + draw_llvm_destroy( draw->llvm ); #endif FREE( draw ); -- 1.7.0.4