[PATCH v2 2/4] Free the data returned by XGetWindowProperty()

Emil Velikov emil.l.velikov at gmail.com
Thu May 21 09:34:52 PDT 2015


On 21 May 2015 at 17:21, Jasper St. Pierre <jstpierre at mecheye.net> wrote:
> XFree crashes when passed NULL.
>
I've never tried it personally, but it seems that XFree() is a simple
wrapper around free(), which should work just fine. [1] [2]
On the other hand $ man 3 XFree clearly states that "NULL pointer
cannot be passed to this function" :-\

-Emil

[1] http://cgit.freedesktop.org/xorg/lib/libX11/tree/src/XlibInt.c#n1546
[2] http://cgit.freedesktop.org/xorg/lib/libX11/tree/include/X11/Xlibint.h#n332


More information about the xorg-devel mailing list