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
if (!intelInitContext(intel, api, mesaVis, driContextPriv,
sharedContextPrivate, &functions)) {
- free(i915);
*error = __DRI_CTX_ERROR_NO_MEMORY;
return false;
}
if (req_version > max_version) {
*error = __DRI_CTX_ERROR_BAD_VERSION;
- free(i915);
return false;
}
break;
break;
default:
*error = __DRI_CTX_ERROR_BAD_API;
- free(i915);
return false;
}