X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdesktop.c;fp=src%2Fdesktop.c;h=9a5ca544d69eae2d06b892772fc74cf7feb20471;hb=46e2d5e441dfb9f58c377742529f2e106f31660c;hp=f32097e8735be3f688986f2c4a6a0cc766d4ffe8;hpb=d85915199c8a3213ad827ca2dfb3bbc34c5f3da3;p=src%2Fagl-compositor.git diff --git a/src/desktop.c b/src/desktop.c index f32097e..9a5ca54 100644 --- a/src/desktop.c +++ b/src/desktop.c @@ -243,8 +243,9 @@ skip_output_asignment: weston_log("Removed surface %p, app_id %s, role %s\n", surface, app_id, ivi_layout_get_surface_role_name(surface)); - shell_advertise_app_state(output->ivi, app_id, - NULL, AGL_SHELL_DESKTOP_APP_STATE_DESTROYED); + if (app_id && output) + shell_advertise_app_state(output->ivi, app_id, + NULL, AGL_SHELL_DESKTOP_APP_STATE_DESTROYED); wl_list_remove(&surface->link);