[PATCH 1/4] dix: Update element count in FreeResourceByType()

Kristian Høgsberg krh at bitplanet.net
Sun May 2 14:26:58 PDT 2010


On Sun, May 2, 2010 at 5:02 PM, Keith Packard <keithp at keithp.com> wrote:
> On Sat,  1 May 2010 13:31:57 -0400, Kristian Høgsberg <krh at bitplanet.net> wrote:
>
>> All resource functions keep clientTable[cid].elements up to date with the
>> number of resources allocated to the client.  Except
>> FreeResourceByType().
>
> How about FreeClientNeverRetainResources and FreeClientResources?

I guess they don't do it either... bad assumption on my part.  But it
*is* a bug, right?  I can fix those too and resend, but I'm just still
surprised that this bug was in there all the time and not sure if
instead I'm missing something subtle in the resource code.

Kristian


More information about the xorg-devel mailing list