compositor: Fix memleak when disabling the output 02/28502/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, 15 Feb 2023 15:47:14 +0000 (17:47 +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

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);
 }