diff options
author | Ian Romanick <[email protected]> | 2012-09-26 17:57:01 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-09-28 15:05:24 -0700 |
commit | de958de71b1450952e021af4e729c87406353db6 (patch) | |
tree | d5031689bbd3af4702b38309247cae6e0ff3101c /src/mesa | |
parent | 87f26214d6bdeb439b30615ec53c293c5141cf11 (diff) |
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 <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53618
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_context.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_context.c b/src/mesa/drivers/dri/i915/i915_context.c index 8ae1e580ed6..c0d1f93bece 100644 --- a/src/mesa/drivers/dri/i915/i915_context.c +++ b/src/mesa/drivers/dri/i915/i915_context.c @@ -167,7 +167,6 @@ i915CreateContext(int api, if (!intelInitContext(intel, api, mesaVis, driContextPriv, sharedContextPrivate, &functions)) { - free(i915); *error = __DRI_CTX_ERROR_NO_MEMORY; return false; } @@ -184,7 +183,6 @@ i915CreateContext(int api, if (req_version > max_version) { *error = __DRI_CTX_ERROR_BAD_VERSION; - free(i915); return false; } break; @@ -194,7 +192,6 @@ i915CreateContext(int api, break; default: *error = __DRI_CTX_ERROR_BAD_API; - free(i915); return false; } |