Remove client when the app is terminated
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Thu, 31 May 2018 10:19:44 +0000 (19:19 +0900)
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>
Thu, 31 May 2018 10:19:44 +0000 (19:19 +0900)
Change-Id: I06f5ef9f7cac0d73fa40980faa9ec0c0583fc41b
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
src/main.cpp

index 2cfabb0..60f8164 100644 (file)
@@ -201,6 +201,7 @@ static void cbRemoveClientCtxt(void *data)
         g_afb_instance->app.controller->surfaces.erase(sid);
         HMI_DEBUG("wm", "delete surfaceID %d", sid);
     }
         g_afb_instance->app.controller->surfaces.erase(sid);
         HMI_DEBUG("wm", "delete surfaceID %d", sid);
     }
+    g_afb_instance->app.removeClient(ctxt->name);
     delete ctxt;
 }
 
     delete ctxt;
 }