compositor: Fix memleak when disabling the output 43/28543/1
authorMarius Vlad <marius.vlad@collabora.com>
Wed, 15 Feb 2023 15:07:09 +0000 (17:07 +0200)
committerMarius Vlad <marius.vlad@collabora.com>
Wed, 1 Mar 2023 10:35:11 +0000 (12:35 +0200)
Turns out we're leaking out the app_ids when disabling the output so
turn that memleak off.

Bug-AGL: SPEC-4705
Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
Change-Id: Ia2d46ecd1748c078e924d8d6c90bd86e9c49f64c
(cherry picked from commit d98b08f1fcb6ff6ccc762f149c8aa53a6921ad60)

src/compositor.c

index 617f1b5..b97ad79 100644 (file)
@@ -502,6 +502,7 @@ head_disable(struct ivi_compositor *ivi, struct weston_head *head)
                }
        }
        wl_list_remove(&ivi_output->link);
+       free(ivi_output->app_ids);
        free(ivi_output);
 }