xf86-video-intel: src/sna/sna_composite.c
Chris Wilson
ickle at kemper.freedesktop.org
Sun Mar 3 07:33:28 PST 2013
src/sna/sna_composite.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
New commits:
commit 48a733a35a2de36664a42384d066c06f54cf2ad7
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date: Sun Mar 3 15:32:23 2013 +0000
sna: Only destroy the cached CLEAR picture if it exists
Reported-by: Reinis Danne
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
diff --git a/src/sna/sna_composite.c b/src/sna/sna_composite.c
index 916d6da..2b46f62 100644
--- a/src/sna/sna_composite.c
+++ b/src/sna/sna_composite.c
@@ -55,8 +55,12 @@ bool sna_composite_create(struct sna *sna)
void sna_composite_close(struct sna *sna)
{
- FreePicture(sna->clear, 0);
- sna->clear = NULL;
+ DBG(("%s\n", __FUNCTION__));
+
+ if (sna->clear) {
+ FreePicture(sna->clear, 0);
+ sna->clear = NULL;
+ }
}
static inline bool
More information about the xorg-commit
mailing list