mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
impl->destroy cleanup:
- remove trivial destroy() function - make sure we check impl and impl->destroy before calling - always call free if not implemented
This commit is contained in:
parent
ba20d5b3ca
commit
4bbf718e7d
6 changed files with 11 additions and 10 deletions
|
|
@ -103,7 +103,7 @@ struct wlr_output *wlr_wl_output_create(struct wlr_backend *_backend) {
|
|||
|
||||
struct wlr_wl_backend_output *output;
|
||||
if (!(output = calloc(sizeof(struct wlr_wl_backend_output), 1))) {
|
||||
wlr_log(L_ERROR, "Failed to allocate wlr_output_state");
|
||||
wlr_log(L_ERROR, "Failed to allocate wlr_wl_backend_output");
|
||||
return NULL;
|
||||
}
|
||||
wlr_output_init(&output->wlr_output, &output_impl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue