diff options
author | Emre Ucan <eucan@de.adit-jv.com> | 2016-04-01 14:35:16 +0200 |
---|---|---|
committer | Wataru Natsume <wataru_natsume@xddp.denso.co.jp> | 2016-04-07 19:41:54 +0900 |
commit | ec05f5434dee2ace5320313054fc025be2530e37 (patch) | |
tree | f45159e95b4f9dd3f03008b4987876ce9b31913a | |
parent | a49d7af9ab5b6a7224a5bcbe5add77fa2c75a4d7 (diff) | |
download | wayland-ivi-extension-ec05f5434dee2ace5320313054fc025be2530e37.tar.gz |
ilmControl: destroy ivi_controller_layer proxy
Destroy the ivi_controller_layer proxy before
destroying ctx_layer data struct to avoid memory leak.
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
-rw-r--r-- | ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c index 21708ab..dc2f4b7 100644 --- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c +++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c @@ -397,6 +397,8 @@ controller_layer_listener_destroyed(void *data, struct surface_context *ctx_surf = NULL; struct surface_context *ctx_surf_next = NULL; + ivi_controller_layer_destroy(controller, 1); + wl_list_remove(&ctx_layer->order.link); wl_list_remove(&ctx_layer->link); @@ -1062,6 +1064,7 @@ static void destroy_control_resources(void) wl_list_for_each_safe(l, n, &ctx->wl.list_layer, link) { wl_list_remove(&l->link); wl_list_remove(&l->order.link); + ivi_controller_layer_destroy(l->controller, 0); free(l); } } |