diff options
author | Eric Anholt <[email protected]> | 2007-12-18 14:17:27 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2007-12-18 14:17:27 -0800 |
commit | 4878f12189c52e1cafe9240183d0e371a1f287d3 (patch) | |
tree | 02dc28ffe911b74bb76461f6a1d88457ecc0cac1 /src/mesa/drivers/dri | |
parent | a856da63247a4b403f6350914f732e14d1530ed1 (diff) |
[915] Free dri_bufmgr after mesa context data.
Fixes a crash when buffer objects are left around until context destroy.
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r-- | src/mesa/drivers/dri/i915/intel_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/intel_context.c b/src/mesa/drivers/dri/i915/intel_context.c index be084903c24..5d34642a5dc 100644 --- a/src/mesa/drivers/dri/i915/intel_context.c +++ b/src/mesa/drivers/dri/i915/intel_context.c @@ -591,8 +591,6 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv) intel->first_swap_fence = NULL; } - dri_bufmgr_destroy(intel->bufmgr); - if (release_texture_heaps) { /* This share group is about to go away, free our private * texture object data. @@ -603,6 +601,8 @@ intelDestroyContext(__DRIcontextPrivate * driContextPriv) /* free the Mesa context */ _mesa_free_context_data(&intel->ctx); + + dri_bufmgr_destroy(intel->bufmgr); } } |