[915] Free dri_bufmgr after mesa context data.

Fixes a crash when buffer objects are left around until context destroy.
This commit is contained in:
Eric Anholt
2007-12-18 14:17:27 -08:00
parent a856da6324
commit 4878f12189
+2 -2
View File
@@ -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);
}
}