diff options
author | Uli Schlachter <psychon@znc.in> | 2017-07-09 12:03:06 +0200 |
---|---|---|
committer | Uli Schlachter <psychon@znc.in> | 2017-07-11 16:22:04 +0200 |
commit | 947eaba9ff0bf6e6b595cd5a065b5f126611fdb7 (patch) | |
tree | 440547a0b558a94f5fbc6644cc0db28bd5710961 | |
parent | 95b9a8fd876fdbbc854cdf3d90317be3846c7417 (diff) |
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@znc.in>
-rw-r--r-- | cursor/xcb_cursor.h | 1 |
1 files changed, 1 insertions, 0 deletions
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); |