From 7c393d514382a9784894ac2950669361b5c9def1 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 4 Aug 2017 16:44:45 -0400 Subject: Missed a variable --- examples/compositor/wl_compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/compositor') diff --git a/examples/compositor/wl_compositor.c b/examples/compositor/wl_compositor.c index b022e71c..52fc0e00 100644 --- a/examples/compositor/wl_compositor.c +++ b/examples/compositor/wl_compositor.c @@ -89,7 +89,7 @@ static void destroy_surface_listener(struct wl_listener *listener, void *data) { struct wl_resource *res = NULL; wl_list_for_each(res, &state->surfaces, link) { - if (_res == surface->resource) { + if (res == surface->resource) { wl_list_remove(&res->link); break; } -- cgit v1.2.3