mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-01-01 21:10:15 +01:00
client: Fix segmentation fault in the case weston-nested
eglTerminate should be called before the display was disconnected. Signed-off-by: Yong Gan <yong.gan@nxp.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
7f4d9ffefa
commit
bc04d70336
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue