aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-30 14:30:16 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-08-31 13:01:50 +0900
commite65b048f311335ee550ac51f97f8ce50468babf9 (patch)
tree3c94b6ded098f73e1153afcd7ad43ff2732b143b /src
parent1859dd4135f5d019f16a1333df318ecd1211afb9 (diff)
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 <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src')
-rw-r--r--src/window_manager.cpp4
1 files changed, 4 insertions, 0 deletions
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<WMAction> &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)
{