mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
common: Add additional memory utilities (xzalloc() etc.)
This commit is contained in:
parent
b89f7bfc0d
commit
cb40cdc36c
35 changed files with 193 additions and 167 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
#include <assert.h>
|
||||
#include "common/mem.h"
|
||||
#include "labwc.h"
|
||||
#include "node.h"
|
||||
#include "ssd.h"
|
||||
|
|
@ -374,7 +375,7 @@ xdg_surface_new(struct wl_listener *listener, void *data)
|
|||
|
||||
wlr_xdg_surface_ping(xdg_surface);
|
||||
|
||||
struct view *view = calloc(1, sizeof(struct view));
|
||||
struct view *view = xzalloc(sizeof(struct view));
|
||||
view->server = server;
|
||||
view->type = LAB_XDG_SHELL_VIEW;
|
||||
view->impl = &xdg_toplevel_view_impl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue