Changeset 159776f in mainline for uspace/srv/hid/display/main.c
- Timestamp:
- 2019-10-10T10:17:17Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 78a71936
- Parents:
- bef51cf
- git-author:
- Jiri Svoboda <jiri@…> (2019-10-09 17:07:14)
- git-committer:
- Jiri Svoboda <jiri@…> (2019-10-10 10:17:17)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/display/main.c
rbef51cf r159776f 7 7 * are met: 8 8 * 9 * - Redistribution s of source code must retain the above copyright9 * - Redistribution1s of source code must retain the above copyright 10 10 * notice, this list of conditions and the following disclaimer. 11 11 * - Redistributions in binary form must reproduce the above copyright … … 46 46 #include <task.h> 47 47 #include "display.h" 48 #include "output.h" 48 49 #include "window.h" 49 50 … … 56 57 { 57 58 ds_display_t *disp = NULL; 59 gfx_context_t *gc = NULL; 58 60 errno_t rc; 59 61 60 rc = ds_display_create(&disp); 62 rc = output_init(&gc); 63 if (rc != EOK) 64 goto error; 65 66 rc = ds_display_create(gc, &disp); 61 67 if (rc != EOK) 62 68 goto error; … … 82 88 return EOK; 83 89 error: 90 if (gc != NULL) 91 gfx_context_delete(gc); 84 92 if (disp != NULL) 85 93 ds_display_destroy(disp);
Note:
See TracChangeset
for help on using the changeset viewer.