diff options
author | Eric Anholt <eric@anholt.net> | 2009-02-11 01:15:36 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2009-02-17 10:58:32 -0800 |
commit | 60953059ea2319eae4d737831824dbce08ee1725 (patch) | |
tree | d496cdfc3d95c3704f6758cb0b52b90bb96d8038 /src/mesa/drivers/dri/i965 | |
parent | baef7c5474d302f1bc9997b09948fd6b883ec60d (diff) |
intel: Clean up several 965 memory leaks on context destroy.
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_vtbl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c index b501a59ccd..15ceac6ba1 100644 --- a/src/mesa/drivers/dri/i965/brw_vtbl.c +++ b/src/mesa/drivers/dri/i965/brw_vtbl.c @@ -67,6 +67,8 @@ static void brw_destroy_context( struct intel_context *intel ) brw_destroy_state(brw); brw_draw_destroy( brw ); + _mesa_free(brw->wm.compile_data); + brw_FrameBufferTexDestroy( brw ); for (i = 0; i < brw->state.nr_draw_regions; i++) @@ -90,6 +92,7 @@ static void brw_destroy_context( struct intel_context *intel ) dri_bo_release(&brw->wm.bind_bo); for (i = 0; i < BRW_WM_MAX_SURF; i++) dri_bo_release(&brw->wm.surf_bo[i]); + dri_bo_release(&brw->wm.sampler_bo); dri_bo_release(&brw->wm.prog_bo); dri_bo_release(&brw->wm.state_bo); dri_bo_release(&brw->cc.prog_bo); |