diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-11 17:11:54 -0400 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-10-11 17:11:54 -0400 |
| commit | d4cc1cd098a4e01258aba38f94462cd44eceb1e3 (patch) | |
| tree | 9b4f76ca8ea11eb55b6debcaa00f63a49ee84149 /src | |
| parent | connection: Print object id for new-id arguments in deubug output (diff) | |
| download | wayland-d4cc1cd098a4e01258aba38f94462cd44eceb1e3.tar wayland-d4cc1cd098a4e01258aba38f94462cd44eceb1e3.tar.gz wayland-d4cc1cd098a4e01258aba38f94462cd44eceb1e3.tar.bz2 wayland-d4cc1cd098a4e01258aba38f94462cd44eceb1e3.tar.lz wayland-d4cc1cd098a4e01258aba38f94462cd44eceb1e3.tar.xz wayland-d4cc1cd098a4e01258aba38f94462cd44eceb1e3.tar.zst wayland-d4cc1cd098a4e01258aba38f94462cd44eceb1e3.zip | |
client: Don't forget to init and destroy mutex
These chunks were dropped at some point, thanks to David Herrmann for
spotting the omission.
Diffstat (limited to 'src')
| -rw-r--r-- | src/wayland-client.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wayland-client.c b/src/wayland-client.c index 625cd76..68e6b2e 100644 --- a/src/wayland-client.c +++ b/src/wayland-client.c @@ -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); |
