[Xcb-commit] xcb/util-cursor: cursor
Uli Schlachter
psychon at kemper.freedesktop.org
Tue Jul 11 14:22:15 UTC 2017
cursor/xcb_cursor.h | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 947eaba9ff0bf6e6b595cd5a065b5f126611fdb7
Author: Uli Schlachter <psychon at znc.in>
Date: Sun Jul 9 12:03:06 2017 +0200
documentation: Call xcb_free_cursor() when done
The documentation for xcb_cursor_load_cursor() say that the resulting
cursor must be freed, but the example in the documentation does not do
so. It does not matter much for this example, but I think it is a good
idea to use it to hint to this requirement. Also, the example already
uses xcb_cursor_context_free(), so it tries to clean up after itself.
Signed-off-by: Uli Schlachter <psychon at znc.in>
diff --git a/cursor/xcb_cursor.h b/cursor/xcb_cursor.h
index 2cc3223..8752a9c 100644
--- a/cursor/xcb_cursor.h
+++ b/cursor/xcb_cursor.h
@@ -56,6 +56,7 @@ extern "C" {
*
* xcb_screen_t *screen = xcb_setup_roots_iterator(xcb_get_setup(conn)).data;
* xcb_change_window_attributes(conn, screen->root, XCB_CW_CURSOR, (uint32_t[]){ cid });
+ * xcb_free_cursor(conn, cid);
* xcb_flush(conn);
*
* xcb_cursor_context_free(ctx);
More information about the xcb-commit
mailing list