don't handle failed calloc

be consistent with the rest of the code
main
Guido Cella 2020-08-29 08:41:51 +02:00
parent ddd3c2ad7e
commit 3203d1bafd
1 changed files with 0 additions and 2 deletions

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,