output: log error when failing to allocate output

This commit is contained in:
Jente Hidskes 2019-12-26 17:25:22 +01:00
parent 4e832c6aaf
commit 22adaae715
No known key found for this signature in database
GPG key ID: 04BE5A29F32D91EA

View file

@ -363,6 +363,7 @@ handle_new_output(struct wl_listener *listener, void *data)
struct cg_output *output = calloc(1, sizeof(struct cg_output));
if (!output) {
wlr_log(WLR_ERROR, "Failed to allocate output");
return;
}