mirror of
https://github.com/swaywm/sway.git
synced 2024-12-29 00:16:22 +01:00
Fix memory leak in sway/desktop/idle_inhibit_v1.c
This commit is contained in:
parent
37471ac649
commit
3931cb85b2
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
manager->wlr_manager = wlr_idle_inhibit_v1_create(wl_display);
|
||||||
if (!manager->wlr_manager) {
|
if (!manager->wlr_manager) {
|
||||||
|
free(manager);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
manager->idle = idle;
|
manager->idle = idle;
|
||||||
|
|
Loading…
Reference in a new issue