diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2008-08-26 21:50:23 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2008-08-26 21:50:23 -0400 |
commit | 38aa450fce6a91b35c191fd07112490a62cc29c6 (patch) | |
tree | 990a1a2f6412434df5323a7553e3e7988f0b772f | |
parent | a3cc1d7a421456186024c5c069e403d374a0f0b9 (diff) |
fix some fallout from the common allocator
should fix bug 17317
-rw-r--r-- | src/radeon_crtc.c | 4 | ||||
-rw-r--r-- | src/radeon_video.c | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/radeon_crtc.c b/src/radeon_crtc.c index 69a87a42..99992fcf 100644 --- a/src/radeon_crtc.c +++ b/src/radeon_crtc.c @@ -465,8 +465,10 @@ radeon_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rotate_pixmap, void *data if (rotate_pixmap) FreeScratchPixmapHeader(rotate_pixmap); - if (data) + if (data) { radeon_free_memory(pScrn, radeon_crtc->crtc_rotate_mem); + radeon_crtc->crtc_rotate_mem = NULL; + } } diff --git a/src/radeon_video.c b/src/radeon_video.c index 598bf2b6..18299d57 100644 --- a/src/radeon_video.c +++ b/src/radeon_video.c @@ -3228,6 +3228,7 @@ RADEONFreeSurface( if(pPriv->isOn) RADEONStopSurface(surface); radeon_free_memory(pScrn, pPriv->surface_memory); + pPriv->surface_memory = NULL; xfree(surface->pitches); xfree(surface->offsets); xfree(surface->devPrivate.ptr); |