summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_crtc.c4
-rw-r--r--src/radeon_video.c1
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);