projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7164652
)
draw: add alloc check
author
Alan Hourihane
<alanh@vmware.com>
Wed, 16 Jun 2010 16:55:00 +0000
(17:55 +0100)
committer
Alan Hourihane
<alanh@vmware.com>
Wed, 16 Jun 2010 17:02:21 +0000
(18:02 +0100)
src/gallium/auxiliary/draw/draw_llvm.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/draw/draw_llvm.c
b/src/gallium/auxiliary/draw/draw_llvm.c
index bd5d8853cf8a584febe86cbefc1026a509f3e46c..9117c1303dc8e5fcf04d5b6b35706cd267735cc9 100644
(file)
--- a/
src/gallium/auxiliary/draw/draw_llvm.c
+++ b/
src/gallium/auxiliary/draw/draw_llvm.c
@@
-173,6
+173,8
@@
draw_llvm_create(struct draw_context *draw)
#endif
llvm = CALLOC_STRUCT( draw_llvm );
+ if (!llvm)
+ return NULL;
llvm->draw = draw;
llvm->engine = draw->engine;