[Bug 85058] [snb][regression] Crash when scaling Java application window
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Oct 16 02:29:38 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=85058
--- Comment #17 from Chris Wilson <chris at chris-wilson.co.uk> ---
The root cause should be fixed by:
diff --git a/Xext/shm.c b/Xext/shm.c
index b2ede99..f5562c0 100644
--- a/Xext/shm.c
+++ b/Xext/shm.c
@@ -281,21 +281,21 @@ ShmDestroyPixmap(PixmapPtr pPixmap)
{
ScreenPtr pScreen = pPixmap->drawable.pScreen;
ShmScrPrivateRec *screen_priv = ShmGetScreenPriv(pScreen);
+ ShmDescPtr shmdesc = NULL;
Bool ret;
- if (pPixmap->refcnt == 1) {
- ShmDescPtr shmdesc;
-
+ if (pPixmap->refcnt == 1)
shmdesc = (ShmDescPtr) dixLookupPrivate(&pPixmap->devPrivates,
shmPixmapPrivateKey);
- if (shmdesc)
- ShmDetachSegment((void *) shmdesc, pPixmap->drawable.id);
- }
pScreen->DestroyPixmap = screen_priv->destroyPixmap;
ret = (*pScreen->DestroyPixmap) (pPixmap);
screen_priv->destroyPixmap = pScreen->DestroyPixmap;
pScreen->DestroyPixmap = ShmDestroyPixmap;
+
+ if (shmdesc)
+ ShmDetachSegment((void *) shmdesc, pPixmap->drawable.id);
+
return ret;
}
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-gfx-bugs/attachments/20141016/52ac413c/attachment.html>
More information about the intel-gfx-bugs
mailing list