From bc04d70336bc8749b7ca7696e5236b80e7ad59b5 Mon Sep 17 00:00:00 2001 From: Yong Gan Date: Tue, 5 Sep 2017 08:00:30 +0800 Subject: [PATCH] client: Fix segmentation fault in the case weston-nested eglTerminate should be called before the display was disconnected. Signed-off-by: Yong Gan Reviewed-by: Daniel Stone --- clients/nested-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/nested-client.c b/clients/nested-client.c index 5027075..70bb4d1 100644 --- a/clients/nested-client.c +++ b/clients/nested-client.c @@ -343,10 +343,10 @@ nested_client_destroy(struct nested_client *client) wl_compositor_destroy(client->compositor); wl_registry_destroy(client->registry); - wl_display_flush(client->display); - wl_display_disconnect(client->display); eglTerminate(client->egl_display); eglReleaseThread(); + wl_display_flush(client->display); + wl_display_disconnect(client->display); } int -- 2.7.4