summaryrefslogtreecommitdiff
path: root/src/i830_video.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zdenek.kabelac@gmail.com>2009-04-21 18:58:23 -0700
committerEric Anholt <eric@anholt.net>2009-04-21 19:54:21 -0700
commitceb3a2eaf9090d67e4dfcbed188125108ceab78d (patch)
tree2a6078c29304e84ba8241768cab419b547a08f3d /src/i830_video.c
parent701c6bef14b5d464847cc42c5ccb66fdeb157f1a (diff)
Remember allocated offscreenImages memory for freeing it in CloseScreen()
Signed-off-by: Zdenek Kabelac <zkabelac@redhat.com> [anholt: renamed the member to match the variable name] Signed-off-by: Eric Anholt <eric@anholt.net>
Diffstat (limited to 'src/i830_video.c')
-rw-r--r--src/i830_video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/i830_video.c b/src/i830_video.c
index a62d7a13..f73c1f7f 100644
--- a/src/i830_video.c
+++ b/src/i830_video.c
@@ -2886,11 +2886,12 @@ I830InitOffscreenImages(ScreenPtr pScreen)
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
I830Ptr pI830 = I830PTR(pScrn);
- /* need to free this someplace */
if (!(offscreenImages = xalloc(sizeof(XF86OffscreenImageRec)))) {
return;
}
+ pI830->offscreenImages = offscreenImages;
+
offscreenImages[0].image = &Images[0];
offscreenImages[0].flags = VIDEO_OVERLAID_IMAGES /*| VIDEO_CLIP_TO_VIEWPORT*/;
offscreenImages[0].alloc_surface = I830AllocateSurface;