[Xcb] lists, replies, and freeing

Vincent Torri Vincent.Torri at iecn.u-nancy.fr
Tue May 10 21:40:54 PDT 2005



On Tue, 10 May 2005, Jamey Sharp wrote:

> On Tue, 2005-05-10 at 21:31 -0400, Jeremy Kolb wrote:
> > If you have a reply return a list and you free the reply does that free
> > the list is free as well or should that be freed later?
>
> All the memory for a reply, including any lists in that reply, is
> allocated in a single malloc call. So you must not free any lists from
> replies, and you should free the reply pointer returned by whatever
> XCB*Reply function you called.

is that why there is always a "Length" method associated to each "Value"
one ?

Vincent


More information about the xcb mailing list