Use wl_resource_* error functions
diff --git a/compositor/compositor.c b/compositor/compositor.c
index 07de2c5..c7099f0 100644
--- a/compositor/compositor.c
+++ b/compositor/compositor.c
@@ -1088,7 +1088,7 @@
cb = malloc(sizeof *cb);
if (cb == NULL) {
- wl_client_post_no_memory(client);
+ wl_resource_post_no_memory(resource);
return;
}
@@ -1171,7 +1171,7 @@
surface = wlsc_surface_create(ec, 0, 0, 0, 0);
if (surface == NULL) {
- wl_client_post_no_memory(client);
+ wl_resource_post_no_memory(resource);
return;
}