Dear suckless developers,
The manpage of XGetTextProperty mentions:
> An extra byte containing null (which is not included in the nitems
> member) is stored at the end of the value field of text_prop_return.
Which, if I understand correctly, means that the value field of the
property is dynamically allocated at every successful run of this
function, and even if nitem equals zero, in which case a bare '\0' is
stored into the field. Hence this patch, which frees the value field
at two places where this was not handled.
Sincerely,
Virgile Andreani
Received on Sat Apr 12 2014 - 17:15:24 CEST