softpipe: check for null pointers during context create/destroy
authorBrian Paul <brianp@vmware.com>
Thu, 20 Jan 2011 20:46:53 +0000 (13:46 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 20 Jan 2011 20:46:57 +0000 (13:46 -0700)
commit37233f1ee0213a224611788bbab38840ba9f8308
tree5fc0724e14c284e3fca64f85ae12e80055321912
parent4ef955a12a526dcad388133b6dc8426a51054cdd
softpipe: check for null pointers during context create/destroy

See http://bugs.freedesktop.org/show_bug.cgi?id=32309
Apparently, malloc() is failing during context creation.  Not
checking for nulls here led to crashes elsewhere.
src/gallium/drivers/softpipe/sp_context.c