Remove client when the app is terminated
[apps/agl-service-windowmanager.git] / 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.removeClient(ctxt->name);
     delete ctxt;
 }