From e65b048f311335ee550ac51f97f8ce50468babf9 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Thu, 30 Aug 2018 14:30:16 +0900 Subject: Fix Window Manager crush when application terminated Fix Window Manager crush when applicaiton terminated caused by wrong handling of sd_event_source. v2. Add error check just in case Bug-AGL: SPEC-1696 Change-Id: I639a60015cde46fca6bc5a3f6e8037afd8d79330 Signed-off-by: Kazumasa Mitsunari --- src/window_manager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/window_manager.cpp b/src/window_manager.cpp index 24b6f30..42930dc 100644 --- a/src/window_manager.cpp +++ b/src/window_manager.cpp @@ -657,6 +657,10 @@ void WindowManager::startTransitionWrapper(std::vector &actions) { bool found; auto const &surface_id = this->lookup_id(act.role.c_str()); + if(surface_id == nullopt) + { + goto proc_remove_request; + } std::string appid = g_app_list.getAppID(*surface_id, act.role, &found); if (!found) { -- cgit 1.2.3-korg