i915: Don't free the intel_context structure when intelCreateContext fails.
authorIan Romanick <ian.d.romanick@intel.com>
Thu, 27 Sep 2012 00:57:01 +0000 (17:57 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Fri, 28 Sep 2012 22:05:24 +0000 (15:05 -0700)
commitde958de71b1450952e021af4e729c87406353db6
treed5031689bbd3af4702b38309247cae6e0ff3101c
parent87f26214d6bdeb439b30615ec53c293c5141cf11
i915: Don't free the intel_context structure when intelCreateContext fails.

intelDestroyContext will eventually be called, and it will clean things up.

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
src/mesa/drivers/dri/i915/i915_context.c