Fix multiple erase of surface information 85/16085/1
authorYuta Doi <yuta-d@witz-inc.co.jp>
Thu, 9 Aug 2018 09:53:06 +0000 (18:53 +0900)
committerYuta Doi <yuta-d@witz-inc.co.jp>
Thu, 9 Aug 2018 09:53:06 +0000 (18:53 +0900)
When application is killed and the surface is destroyed,
the surface informations is erased twice.
Therefore remove the one eracing process.

Change-Id: I707febf5b5003058bcf847f635c16fb0d68e01d0
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
src/main.cpp

index b5659e2..261df8b 100644 (file)
@@ -203,8 +203,6 @@ static void cbRemoveClientCtxt(void *data)
         }
         g_afb_instance->wmgr.id_alloc.remove_id(sid);
         g_afb_instance->wmgr.layers.remove_surface(sid);
-        g_afb_instance->wmgr.controller->sprops.erase(sid);
-        g_afb_instance->wmgr.controller->surfaces.erase(sid);
         HMI_DEBUG("wm", "delete surfaceID %d", sid);
     }
     g_afb_instance->wmgr.removeClient(ctxt->name);