summaryrefslogtreecommitdiff
path: root/src/i830_video.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-10-10 16:48:12 -0700
committerEric Anholt <eric@anholt.net>2007-10-11 12:17:14 -0700
commit0040bb95445e800af80ca9fa1b92f5db33f1b4ac (patch)
tree95da5acfc2121c94ceb28125e33cc047d832c8ae /src/i830_video.c
parent56ae767180da4a8bd4b7a4c35b92e019ab67d753 (diff)
Fix potential use-after-free in XV overlay code on video stop.
Diffstat (limited to 'src/i830_video.c')
-rw-r--r--src/i830_video.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index beec03ea..8c2d804a 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -1016,6 +1016,7 @@ I830StopVideo(ScrnInfoPtr pScrn, pointer data, Bool shutdown)
*/
I830Sync(pScrn);
i830_free_memory(pScrn, pPriv->buf);
+ pPriv->buf = NULL;
pPriv->videoStatus = 0;
} else {
if (pPriv->videoStatus & CLIENT_VIDEO_ON) {