mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-01 22:58:40 -04:00
client: Don't forget to init and destroy mutex
These chunks were dropped at some point, thanks to David Herrmann for spotting the omission.
This commit is contained in:
parent
9272fb8f5c
commit
d4cc1cd098
1 changed files with 2 additions and 0 deletions
|
|
@ -336,6 +336,7 @@ wl_display_connect_to_fd(int fd)
|
|||
display->fd = fd;
|
||||
wl_map_init(&display->objects);
|
||||
wl_event_queue_init(&display->queue);
|
||||
pthread_mutex_init(&display->mutex, NULL);
|
||||
|
||||
wl_map_insert_new(&display->objects, WL_MAP_CLIENT_SIDE, NULL);
|
||||
|
||||
|
|
@ -395,6 +396,7 @@ wl_display_disconnect(struct wl_display *display)
|
|||
wl_connection_destroy(display->connection);
|
||||
wl_map_release(&display->objects);
|
||||
wl_event_queue_release(&display->queue);
|
||||
pthread_mutex_destroy(&display->mutex);
|
||||
|
||||
if (display->close_fd)
|
||||
close(display->fd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue