Skip to content

Commit

Permalink
Fix memory leak in sway/desktop/idle_inhibit_v1.c
Browse files Browse the repository at this point in the history
  • Loading branch information
frsfnrrg committed Jul 17, 2018
1 parent 37471ac commit 3931cb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sway/desktop/idle_inhibit_v1.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ struct sway_idle_inhibit_manager_v1 *sway_idle_inhibit_manager_v1_create(

manager->wlr_manager = wlr_idle_inhibit_v1_create(wl_display);
if (!manager->wlr_manager) {
free(manager);
return NULL;
}
manager->idle = idle;
Expand Down

0 comments on commit 3931cb8

Please sign in to comment.