[Xcb-commit] libxcb: src
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Sep 20 18:41:32 UTC 2021
src/c_client.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit a503167f751ba77e6819df568b7f5042d2baa9c9
Author: Uli Schlachter <psychon at znc.in>
Date: Sat May 22 21:43:22 2021 +0200
Improve/fix docs for reply fds functions
Fixes: https://gitlab.freedesktop.org/xorg/lib/libxcb/-/issues/56
Signed-off-by: Uli Schlachter <psychon at znc.in>
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 *')
More information about the xcb-commit
mailing list