summaryrefslogtreecommitdiff
path: root/hw/xfree86/exa
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2005-10-06 21:55:41 +0000
committerEric Anholt <anholt@freebsd.org>2005-10-06 21:55:41 +0000
commit1614a31a9dad9482ae4526c194c2bae1c4993f8f (patch)
tree3551137f93394c1deba9dd9f83f4d6c52b7945f7 /hw/xfree86/exa
parentcd9ff6aec81e04bbfe14364407ccb28df05fc063 (diff)
Bug #4699: Correct some memory leaks in EXA and damage related to region
handling.
Diffstat (limited to 'hw/xfree86/exa')
-rw-r--r--hw/xfree86/exa/exa_render.c1
-rw-r--r--hw/xfree86/exa/exapict.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/hw/xfree86/exa/exa_render.c b/hw/xfree86/exa/exa_render.c
index e71f53575..24b59efac 100644
--- a/hw/xfree86/exa/exa_render.c
+++ b/hw/xfree86/exa/exa_render.c
@@ -511,6 +511,7 @@ exaComposite(CARD8 op,
REGION_RECTS(&region), REGION_NUM_RECTS(&region),
xSrc - xDst, ySrc - yDst,
FALSE, FALSE, 0, NULL);
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
return;
}
}
diff --git a/hw/xfree86/exa/exapict.c b/hw/xfree86/exa/exapict.c
index e71f53575..24b59efac 100644
--- a/hw/xfree86/exa/exapict.c
+++ b/hw/xfree86/exa/exapict.c
@@ -511,6 +511,7 @@ exaComposite(CARD8 op,
REGION_RECTS(&region), REGION_NUM_RECTS(&region),
xSrc - xDst, ySrc - yDst,
FALSE, FALSE, 0, NULL);
+ REGION_UNINIT(pDst->pDrawable->pScreen, &region);
return;
}
}