forked from mirror/dwl
don't handle failed calloc
be consistent with the rest of the code
This commit is contained in:
parent
ddd3c2ad7e
commit
3203d1bafd
1 changed files with 0 additions and 2 deletions
2
dwl.c
2
dwl.c
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue