[PATCH v2 2/4] Free the data returned by XGetWindowProperty()
walter harms
wharms at bfs.de
Fri May 22 00:36:54 PDT 2015
Am 21.05.2015 22:42, schrieb Alan Coopersmith:
> On 05/21/15 10:13 AM, walter harms wrote:
>> maybe this was the case in older versions.
>> a current free() should accept NULL.
>>
>> Xfree is onyl a wrapper for free()
>> #define Xfree(ptr) free((ptr))
>
> That's Xfree(), not XFree(). X11 has both, because it loves you and
> wants you to learn that case sensitivity matters.
>
int
XFree (void *data)
{
Xfree (data);
return 1;
}
i hesitate to ask if anyone ever check the return code of XFree().
Unfortunately i promised to spend time for an other project
but it would be nice if someone could cleanup to this mess at least
fix the documentation.
re,
wh
More information about the xorg-devel
mailing list