From a503167f751ba77e6819df568b7f5042d2baa9c9 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 22 May 2021 21:43:22 +0200 Subject: Improve/fix docs for reply fds functions Fixes: https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/56 Signed-off-by: Uli Schlachter --- src/c_client.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/c_client.py b/src/c_client.py index dfb5864..fd256f0 100644 --- a/src/c_client.py +++ b/src/c_client.py @@ -2611,9 +2611,10 @@ def _c_reply_fds(self, name): _h(' * @param c The connection') _h(' * @param reply The reply') _h(' *') - _h(' * Returns the array of reply fds of the request asked by') + _h(' * Returns a pointer to the array of reply fds of the reply.') _h(' *') - _h(' * The returned value must be freed by the caller using free().') + _h(' * The returned value points into the reply and must not be free().') + _h(' * The fds are not managed by xcb. You must close() them before freeing the reply.') _h(' */') _c('') _hc('int *') -- cgit v1.2.3