From: duerpei Date: Wed, 23 Feb 2022 01:36:48 +0000 (+0800) Subject: Fix potential memory leak X-Git-Tag: 12.93.0~3 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=f24765124d3a539c84ecbfc530cd071fcff6a7a4;p=src%2Fagl-compositor.git Fix potential memory leak Bug-AGL:SPEC-4257 Signed-off-by: duerpei Change-Id: I0effc97710d9bf93f5044e22400e9ff6699a4309 --- diff --git a/src/desktop.c b/src/desktop.c index a0cb2d2..74ce916 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -442,6 +442,7 @@ ivi_shell_destroy(struct wl_listener *listener, void *data) struct ivi_compositor *ivi = container_of(listener, struct ivi_compositor, destroy_listener); + weston_desktop_destroy(ivi->desktop); ivi_compositor_destroy_pending_surfaces(ivi); }