diff options
author | alanh <alanh> | 2000-11-01 10:38:42 +0000 |
---|---|---|
committer | alanh <alanh> | 2000-11-01 10:38:42 +0000 |
commit | 8c553ae1fe0b956c5aee29acc3b7606112318132 (patch) | |
tree | bcd29426bfaff90de5b2e8426652440182ce6e81 | |
parent | 4d5686d53505da10dc32507adbb14aecf86b84eb (diff) |
Fix Rage128/Radeon to free correct scratch buffer on leaving VT.radeon-1-0-0-branch
-rw-r--r-- | xc/programs/Xserver/hw/xfree86/drivers/r128/r128_driver.c | 4 | ||||
-rw-r--r-- | xc/programs/Xserver/hw/xfree86/drivers/r128/radeon_driver.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/xc/programs/Xserver/hw/xfree86/drivers/r128/r128_driver.c b/xc/programs/Xserver/hw/xfree86/drivers/r128/r128_driver.c index 50a982597..fba8fa292 100644 --- a/xc/programs/Xserver/hw/xfree86/drivers/r128/r128_driver.c +++ b/xc/programs/Xserver/hw/xfree86/drivers/r128/r128_driver.c @@ -2802,8 +2802,8 @@ static Bool R128CloseScreen(int scrnIndex, ScreenPtr pScreen) if (info->accel) XAADestroyInfoRec(info->accel); info->accel = NULL; - if (info->scratch_buffer[0]) xfree(info->scratch_buffer[0]); - info->scratch_buffer[0] = NULL; + if (info->scratch_save ) xfree(info->scratch_save); + info->scratch_save = NULL; if (info->cursor) xf86DestroyCursorInfoRec(info->cursor); info->cursor = NULL; diff --git a/xc/programs/Xserver/hw/xfree86/drivers/r128/radeon_driver.c b/xc/programs/Xserver/hw/xfree86/drivers/r128/radeon_driver.c index fe9ebd382..2cd2a434f 100644 --- a/xc/programs/Xserver/hw/xfree86/drivers/r128/radeon_driver.c +++ b/xc/programs/Xserver/hw/xfree86/drivers/r128/radeon_driver.c @@ -2896,8 +2896,8 @@ static Bool RADEONCloseScreen(int scrnIndex, ScreenPtr pScreen) if (info->accel) XAADestroyInfoRec(info->accel); info->accel = NULL; - if (info->scratch_buffer[0]) xfree(info->scratch_buffer[0]); - info->scratch_buffer[0] = NULL; + if (info->scratch_save) xfree(info->scratch_save); + info->scratch_save = NULL; if (info->cursor) xf86DestroyCursorInfoRec(info->cursor); info->cursor = NULL; |