don't handle failed calloc
be consistent with the rest of the code
This commit is contained in:
parent
ddd3c2ad7e
commit
3203d1bafd
2
dwl.c
2
dwl.c
|
@ -878,8 +878,6 @@ createlayersurface(struct wl_listener *listener, void *data)
|
||||||
}
|
}
|
||||||
|
|
||||||
layersurface = calloc(1, sizeof(LayerSurface));
|
layersurface = calloc(1, sizeof(LayerSurface));
|
||||||
if (!layersurface)
|
|
||||||
return;
|
|
||||||
|
|
||||||
layersurface->surface_commit.notify = commitlayersurfacenotify;
|
layersurface->surface_commit.notify = commitlayersurfacenotify;
|
||||||
wl_signal_add(&wlr_layer_surface->surface->events.commit,
|
wl_signal_add(&wlr_layer_surface->surface->events.commit,
|
||||||
|
|
Loading…
Reference in a new issue