intel: Don't call intelDestroyContext if there is no context to destroy
authorIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Sep 2012 15:29:12 +0000 (08:29 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Sep 2012 22:05:24 +0000 (15:05 -0700)
commit22897c74979aa02facdd5cd729db8dadf86924f5
tree189fc2b05521296c1a6bb958a358848016925568
parentf93cb0bebb10e3e3e5df099be51021b211650356
intel: Don't call intelDestroyContext if there is no context to destroy

Some error paths in the device-specific context creation functions can exit
before the deintel_context structure is allocated.

NOTE: This is a candidate for the 9.0 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53618
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54301
src/mesa/drivers/dri/intel/intel_screen.c