summaryrefslogtreecommitdiff
path: root/src/i830_driver.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_driver.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_driver.c')
-rw-r--r--src/i830_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index f1ea5115..2249a990 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -3700,6 +3700,8 @@ I830CloseScreen(int scrnIndex, ScreenPtr pScreen)
#ifdef I830_XV
i965_free_video(pScrn);
+ free(pI830->offscreenImages);
+ pI830->offscreenImages = NULL;
#endif
dri_bufmgr_destroy(pI830->bufmgr);