Colin Harrison <[email protected]> writes: > - counts[(type & TypeMask) - 1]++; > + if ((type & TypeMask) != RT_NONE) counts[(type & TypeMask) - 1]++; > } > > to avoid xrestop crashing the server...which has got to be a good > thing?
Ouch. Looks like there really are places in the server storing RT_NONE resources (dix/dixfont.c). Is there any reason to keep 'optimizing' this code to not count type 0 objects? Seems like a plausible fix would be to just stop offsetting the types by one in this array. -- [email protected]
pgpL9b0uXv2WA.pgp
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
