xserver/composite
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mason Green 9dbfd86b2e Xext: composite: take the pixmap reference before AddResource() on Xinerama
When AddResource() fails it calls the type's delete function, which for
pixmaps is dixDestroyPixmap() and drops one reference.

SingleCompositeNameWindowPixmap() increments pPixmap->refcnt before
AddResource(), so a failure only drops that extra reference. The Xinerama
path in ProcCompositeNameWindowPixmap() incremented it afterwards, so a
failure dropped the window's own reference to its backing pixmap and
could free it while still in use. Take the reference first, as the
single-screen path does.

Signed-off-by: Mason Green <mason@greenm01.net>
(cherry picked from commit 6240f6551c)
2026-10-13 12:17:45 +02:00
..
compalloc.c composite: Skip copying parent pixmap contents when possible 2026-02-09 19:30:34 +01:00
compext.c Xext: composite: take the pixmap reference before AddResource() on Xinerama 2026-10-13 12:17:45 +02:00
compinit.c composite: fix missing includes of extinit.h 2025-09-25 13:47:57 +02:00
compint.h composite: dont include <dix-config.h> from headers 2025-11-27 19:35:46 +01:00
compositeext.h composite: dont include <dix-config.h> from headers 2025-11-27 19:35:46 +01:00
compositeext_priv.h composite: fix duplicate typedef of ScreenPtr 2024-04-18 00:51:06 +00:00
compoverlay.c composite: fix missing includes of extinit.h 2025-09-25 13:47:57 +02:00
compwindow.c include: windowstr.h: unexport w*() macros 2025-11-27 19:54:42 +01:00
meson.build compext: replace tabs by whitespaces 2025-09-24 11:32:32 +02:00