don't handle failed calloc

be consistent with the rest of the code
This commit is contained in:
Guido Cella 2020-08-29 08:41:51 +02:00
parent ddd3c2ad7e
commit 3203d1bafd

2
dwl.c
View File

@ -878,8 +878,6 @@ createlayersurface(struct wl_listener *listener, void *data)
}
layersurface = calloc(1, sizeof(LayerSurface));
if (!layersurface)
return;
layersurface->surface_commit.notify = commitlayersurfacenotify;
wl_signal_add(&wlr_layer_surface->surface->events.commit,