Changeset 4e7b0ad in mainline
- Timestamp:
- 2022-12-20T17:47:39Z (2 years ago)
- Branches:
- master, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d9d6f29
- Parents:
- 06176e1
- Location:
- uspace/srv/hid/display
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/display.c
r06176e1 r4e7b0ad 116 116 void ds_display_destroy(ds_display_t *disp) 117 117 { 118 int i; 119 118 120 assert(list_empty(&disp->clients)); 119 121 assert(list_empty(&disp->wmclients)); 120 122 assert(list_empty(&disp->seats)); 121 /* XXX destroy cursors */ 123 assert(list_empty(&disp->ddevs)); 124 assert(list_empty(&disp->seats)); 125 assert(list_empty(&disp->windows)); 126 127 /* Destroy cursors */ 128 for (i = 0; i < dcurs_limit; i++) { 129 ds_cursor_destroy(disp->cursor[i]); 130 disp->cursor[i] = NULL; 131 } 132 122 133 gfx_color_delete(disp->bg_color); 123 134 free(disp); -
uspace/srv/hid/display/test/cursor.c
r06176e1 r4e7b0ad 1 1 /* 2 * Copyright (c) 202 0Jiri Svoboda2 * Copyright (c) 2022 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 117 117 PCUT_ASSERT_TRUE(resp.render_called); 118 118 119 ds_ddev_close(ddev); 119 120 ds_cursor_destroy(cursor); 120 121 ds_display_destroy(disp); … … 167 168 PCUT_ASSERT_FALSE(resp.render_called); 168 169 170 ds_ddev_close(ddev); 169 171 ds_cursor_destroy(cursor); 170 172 ds_display_destroy(disp);
Note:
See TracChangeset
for help on using the changeset viewer.