diff options
author | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2014-04-07 12:18:33 +0200 |
---|---|---|
committer | Timo Lotterbach <timo.lotterbach@bmw-carit.de> | 2014-04-07 12:18:33 +0200 |
commit | d5ccf53d534ae5217d655e01f75ef54e056b90ab (patch) | |
tree | 74e4450fa46fac69b2ee321ac3d98fadab9da91f | |
parent | 6bd6635581e8d0d7780346c65158942027b83fc6 (diff) | |
download | wayland-ivi-extension-d5ccf53d534ae5217d655e01f75ef54e056b90ab.tar.gz |
controller destroys mutex on shutdown
Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
-rw-r--r-- | ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c | 4 |
1 files changed, 4 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 4f63c39..6813662 100644 --- a/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c +++ b/ivi-layermanagement-api/ilmControl/src/ilm_control_wayland_platform.c @@ -1461,6 +1461,10 @@ destroy_control_resources() wl_display_disconnect(ctx->child_ctx.display); ctx->child_ctx.display = NULL; } + + if (0 != pthread_mutex_destroy(&ctx->mutex)) { + fprintf(stderr, "failed to destroy pthread_mutex\n"); + } } static void |