From cbd06f94d1713995330942d492b4789e4ed2d347 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Wed, 12 Oct 2011 16:29:31 -0400 Subject: [PATCH] compositor: Silence a couple of valgrind warnings --- compositor/compositor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compositor/compositor.c b/compositor/compositor.c index d2e8ce77..5690efe4 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -208,6 +208,7 @@ surface_handle_buffer_destroy(struct wl_listener *listener, buffer_destroy_listener); struct wl_buffer *buffer = (struct wl_buffer *) resource; + wl_list_init(&es->buffer_destroy_listener.link); if (es->buffer == buffer) es->buffer = NULL; } @@ -256,6 +257,7 @@ wlsc_surface_create(struct wlsc_compositor *compositor, surface->width = width; surface->height = height; + surface->fullscreen_output = NULL; surface->buffer = NULL; surface->output = NULL;