aboutsummaryrefslogtreecommitdiff
path: root/shared/radeon_cp.c
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-01-03 11:22:23 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-01-03 11:22:23 +0000
commit320802ebc145c0b821979dc587cd7e90b10b2d55 (patch)
tree816c9edec75fad1f35d7ee7c1ebf3bf191846df0 /shared/radeon_cp.c
parent7419aa6e3f639ee47879824f387117d28b4de013 (diff)
more cleanups, free mem heap data on last client exit
Diffstat (limited to 'shared/radeon_cp.c')
-rw-r--r--shared/radeon_cp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/shared/radeon_cp.c b/shared/radeon_cp.c
index 7047a4b0..f7b99e8a 100644
--- a/shared/radeon_cp.c
+++ b/shared/radeon_cp.c
@@ -1398,9 +1398,10 @@ void radeon_do_release( drm_device_t *dev )
/* Disable *all* interrupts */
RADEON_WRITE( RADEON_GEN_INT_CNTL, 0 );
-
- /* Destroy agp heap ??? */
-/* radeon_mem_takedown( &(dev_priv->agp_heap) ); */
+
+ /* Free memory heap structures */
+ radeon_mem_takedown( &(dev_priv->agp_heap) );
+ radeon_mem_takedown( &(dev_priv->fb_heap) );
/* deallocate kernel resources */
radeon_do_cleanup_cp( dev );