diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-17 08:46:53 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-17 08:46:53 -0700 |
commit | bec982bba62db39f734d21ffbd2a3c8cefb3f6bd (patch) | |
tree | aff37d623566b7fa85fcdaf78f8ae046fec8cde5 /sway/desktop/idle_inhibit_v1.c | |
parent | f516dbfb6d3380de24751de9a3f3156ece869e02 (diff) | |
parent | 3931cb85b220294764db959513ecadb893e2c47b (diff) |
Merge pull request #2289 from frsfnrrg/memory-fixes
Fix memory leaks and reference to uninitialized
Diffstat (limited to 'sway/desktop/idle_inhibit_v1.c')
-rw-r--r-- | sway/desktop/idle_inhibit_v1.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/desktop/idle_inhibit_v1.c b/sway/desktop/idle_inhibit_v1.c index 108a8417..da17d0f2 100644 --- a/sway/desktop/idle_inhibit_v1.c +++ b/sway/desktop/idle_inhibit_v1.c @@ -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; |