From a9ade39da286c04b96014c422070253a20ac1c50 Mon Sep 17 00:00:00 2001 From: Taekyun Kim Date: Wed, 8 Apr 2015 15:20:39 +0900 Subject: [PATCH] Add missing initialization of signal and list Change-Id: I5730e8b175f2fcae942dba25a345e1f9346e58ec --- src/modules/wayland/wayland-common.c | 1 + src/modules/wayland/wayland-output.c | 3 +++ 2 files changed, 4 insertions(+) diff --git a/src/modules/wayland/wayland-common.c b/src/modules/wayland/wayland-common.c index 094979e..7cbe4b1 100644 --- a/src/modules/wayland/wayland-common.c +++ b/src/modules/wayland/wayland-common.c @@ -79,6 +79,7 @@ pepper_wayland_connect(pepper_compositor_t *compositor, const char *socket_name) conn->event_source = wl_event_loop_add_fd(loop, conn->fd, WL_EVENT_READABLE, handle_wayland_event, conn); + wl_list_init(&conn->seat_list); wl_signal_init(&conn->destroy_signal); conn->registry = wl_display_get_registry(conn->display); diff --git a/src/modules/wayland/wayland-output.c b/src/modules/wayland/wayland-output.c index 75c9af7..f855b11 100644 --- a/src/modules/wayland/wayland-output.c +++ b/src/modules/wayland/wayland-output.c @@ -236,6 +236,9 @@ pepper_wayland_output_create(pepper_wayland_t *conn, int32_t w, int32_t h, const output->conn = conn; + wl_signal_init(&output->destroy_signal); + wl_signal_init(&output->mode_change_signal); + output->w = w; output->h = h; -- 2.7.4