From: Yuta Doi Date: Thu, 9 Aug 2018 09:53:06 +0000 (+0900) Subject: Fix multiple erase of surface information X-Git-Tag: flounder_5.99.3~2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=38255dcda8e7e9462ed3b16ebe39c638bc9b349f;p=apps%2Fagl-service-windowmanager-2017.git Fix multiple erase of surface information 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 --- diff --git a/src/main.cpp b/src/main.cpp index b5659e2..261df8b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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);