summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorefriedrich <efriedrich@de.adit-jv.com>2023-01-05 22:33:27 +0100
committerGitHub <noreply@github.com>2023-01-05 22:33:27 +0100
commit1c71d4a21efab96f65d43606c2639e3b27aefc3d (patch)
treedcd71d7c451bc55df3b57769a35b06fcc1914743
parentf6911a11dc911a5bcb380d0895db6cfd533a3569 (diff)
parenta9384d1762a185d3d2b5b519273cd20eb0a79751 (diff)
downloadwayland-ivi-extension-1c71d4a21efab96f65d43606c2639e3b27aefc3d.tar.gz
Merge pull request #137 from khangtb1/fix_crash_and_hang_on_simple_weston_client_example
simple-weston-client: fix crash and hang when exiting
-rw-r--r--ivi-layermanagement-examples/simple-weston-client/src/simple-weston-client.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/ivi-layermanagement-examples/simple-weston-client/src/simple-weston-client.c b/ivi-layermanagement-examples/simple-weston-client/src/simple-weston-client.c
index a0632c7..1434c31 100644
--- a/ivi-layermanagement-examples/simple-weston-client/src/simple-weston-client.c
+++ b/ivi-layermanagement-examples/simple-weston-client/src/simple-weston-client.c
@@ -887,24 +887,8 @@ int main (int argc, const char * argv[])
Error:
#ifdef LIBWESTON_DEBUG_PROTOCOL
- weston_debug_v1_destroy(wlcontext->debug_iface);
-
- while (1) {
- struct debug_stream *stream;
- int empty = 1;
-
- wl_list_for_each(stream, &wlcontext->stream_list, link)
- if (stream->obj) {
- empty = 0;
- break;
- }
-
- if (empty)
- break;
-
- if (wl_display_dispatch(wlcontext->wl_display) < 0)
- break;
- }
+ if(wlcontext->debug_iface)
+ weston_debug_v1_destroy(wlcontext->debug_iface);
destroy_streams(wlcontext);
wl_display_roundtrip(wlcontext->wl_display);