Fix a bunch of mistakes detected with scan-build

This commit is contained in:
emersion 2017-11-16 10:30:54 +01:00
parent ac78c6642a
commit bb79ada49f
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48
10 changed files with 19 additions and 9 deletions

View file

@ -252,7 +252,6 @@ struct roots_seat *roots_seat_create(struct roots_input *input, char *name) {
seat->seat = wlr_seat_create(input->server->wl_display, name);
if (!seat->seat) {
free(seat);
roots_cursor_destroy(seat->cursor);
return NULL;
}